Home | History | Annotate | Download | only in glue

Lines Matching defs:typed_url

39     LOG(ERROR) << "Could not get the typed_url entries.";
64 LOG(ERROR) << "Server did not create the top-level typed_url node. We "
83 const sync_pb::TypedUrlSpecifics& typed_url(
85 DCHECK_EQ(tag, typed_url.url());
90 int difference = MergeUrls(typed_url, *ix, &visits, &new_url,
95 LOG(ERROR) << "Failed to edit typed_url sync node.";
119 LOG(ERROR) << "Failed to create typed_url sync node.";
139 const sync_pb::TypedUrlSpecifics& typed_url(
142 if (current_urls.find(typed_url.url()) == current_urls.end()) {
145 GURL(typed_url.url()),
148 history::URLRow new_url(GURL(typed_url.url()));
150 new_url.set_title(UTF8ToUTF16(typed_url.title()));
156 new_url.set_typed_count(typed_url.typed_count());
157 new_url.set_hidden(typed_url.hidden());
160 for (int c = 0; c < typed_url.visit_size() - 1; ++c) {
161 DCHECK(typed_url.visit(c) < typed_url.visit(c + 1));
162 visits.push_back(base::Time::FromInternalValue(typed_url.visit(c)));
166 typed_url.visit(typed_url.visit_size() - 1)));
168 Associate(&typed_url.url(), sync_child_node.GetId());
214 LOG(ERROR) << "Server did not create the top-level typed_url node. We "
222 LOG(ERROR) << "Server did not create the top-level typed_url node. We "
227 // The sync model has user created nodes if the typed_url folder has any
249 const std::string& typed_url) {
250 TypedUrlToSyncIdMap::const_iterator iter = id_map_.find(typed_url);
255 const std::string* typed_url, int64 sync_id) {
258 DCHECK(id_map_.find(*typed_url) == id_map_.end());
260 id_map_[*typed_url] = sync_id;
261 id_map_inverse_[sync_id] = *typed_url;
328 const sync_pb::TypedUrlSpecifics& typed_url,
334 DCHECK(!typed_url.url().compare(url.url().spec()));
335 DCHECK(!typed_url.url().compare(new_url->url().spec()));
341 string16 typed_title(UTF8ToUTF16(typed_url.title()));
344 typed_url.visit(typed_url.visit_size() - 1));
352 (typed_url.hidden() != url.hidden())) {
356 new_url->set_hidden(typed_url.hidden());
375 if (typed_url.typed_count() > url.typed_count()) {
376 new_url->set_typed_count(typed_url.typed_count());
378 } else if (typed_url.typed_count() < url.typed_count()) {
383 new_url->set_typed_count(typed_url.typed_count());
386 size_t left_visit_count = typed_url.visit_size();
391 base::Time left_time = base::Time::FromInternalValue(typed_url.visit(left));
408 base::Time left_time = base::Time::FromInternalValue(typed_url.visit(left));
443 sync_pb::TypedUrlSpecifics typed_url;
444 typed_url.set_url(url.url().spec());
445 typed_url.set_title(UTF16ToUTF8(url.title()));
446 typed_url.set_typed_count(url.typed_count());
447 typed_url.set_hidden(url.hidden());
451 typed_url.add_visit(visit->visit_time.ToInternalValue());
454 node->SetTypedUrlSpecifics(typed_url);