Home | History | Annotate | Download | only in bookmarks

Lines Matching refs:url

38 BookmarkNode::BookmarkNode(const GURL& url)
39 : url_(url) {
43 BookmarkNode::BookmarkNode(int64 id, const GURL& url)
44 : url_(url) {
55 type_ = !url_.is_empty() ? URL : BOOKMARK_BAR;
65 DCHECK(entry.type != history::StarredEntry::URL || entry.url == url_);
69 case history::StarredEntry::URL:
70 type_ = BookmarkNode::URL;
280 void BookmarkModel::SetURL(const BookmarkNode* node, const GURL& url) {
286 // We cannot change the URL of a folder.
292 if (url == node->GetURL())
303 // i points to the first node with the URL, advance until we find the
309 AsMutable(node)->SetURL(url);
324 void BookmarkModel::GetNodesByURL(const GURL& url,
327 BookmarkNode tmp_node(url);
329 while (i != nodes_ordered_by_url_set_.end() && (*i)->GetURL() == url) {
336 const GURL& url) {
338 GetNodesByURL(url, &nodes);
351 const GURL* url = &((*i)->GetURL());
353 if (!last_url || *url != *last_url)
354 urls->push_back(*url);
355 last_url = url;
364 bool BookmarkModel::IsBookmarked(const GURL& url) {
366 return IsBookmarkedNoLock(url);
395 const GURL& url) {
396 return AddURLWithCreationTime(parent, index, title, url, Time::Now());
403 const GURL& url,
405 if (!loaded_ || !url.is_valid() || is_root(parent) ||
411 bool was_bookmarked = IsBookmarked(url);
415 BookmarkNode* new_node = new BookmarkNode(generate_next_node_id(), url);
418 new_node->set_type(BookmarkNode::URL);
454 void BookmarkModel::SetURLStarred(const GURL& url,
458 GetNodesByURL(url, &bookmarks);
466 AddURL(parent, parent->child_count(), title, url);
506 bool BookmarkModel::IsBookmarkedNoLock(const GURL& url) {
507 BookmarkNode tmp_node(url);
525 if (node->type() == BookmarkNode::URL) {
530 // i points to the first node with the URL, advance until we find the
610 // RemoveNode adds an entry to changed_urls for each node of type URL. As we
674 if (node->type() == BookmarkNode::URL && !was_bookmarked) {
755 if (node->type() != BookmarkNode::URL)
792 // Got an updated favicon, for a URL, do a new request.