Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1034)

Unified Diff: components/bookmarks/browser/bookmark_model.h

Issue 317333004: Added BookmarkClient::CanBeEditedByUser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added TODO Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/bookmarks/browser/bookmark_client.h ('k') | components/bookmarks/browser/bookmark_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bookmarks/browser/bookmark_model.h
diff --git a/components/bookmarks/browser/bookmark_model.h b/components/bookmarks/browser/bookmark_model.h
index ef640cbe9d68fff8f4c6a17dbd441b3456d07bb5..a6b01b79595dc9b81fe21cc4425e8eb21d2b012b 100644
--- a/components/bookmarks/browser/bookmark_model.h
+++ b/components/bookmarks/browser/bookmark_model.h
@@ -131,9 +131,9 @@ class BookmarkModel {
// recursively removes all nodes. Observers are notified immediately.
void Remove(const BookmarkNode* parent, int index);
- // Removes all the non-permanent bookmark nodes. Observers are only notified
- // when all nodes have been removed. There is no notification for individual
- // node removals.
+ // Removes all the non-permanent bookmark nodes that are editable by the user.
+ // Observers are only notified when all nodes have been removed. There is no
+ // notification for individual node removals.
void RemoveAll();
// Moves |node| to |new_parent| and inserts it at the given |index|.
@@ -166,9 +166,10 @@ class BookmarkModel {
// Returns the set of nodes with the |url|.
void GetNodesByURL(const GURL& url, std::vector<const BookmarkNode*>* nodes);
- // Returns the most recently added node for the |url|. Returns NULL if |url|
- // is not bookmarked.
- const BookmarkNode* GetMostRecentlyAddedNodeForURL(const GURL& url);
+ // Returns the most recently added user node for the |url|; urls from any
+ // nodes that are not editable by the user are never returned by this call.
+ // Returns NULL if |url| is not bookmarked.
+ const BookmarkNode* GetMostRecentlyAddedUserNodeForURL(const GURL& url);
// Returns true if there are bookmarks, otherwise returns false.
// This method is thread safe.
« no previous file with comments | « components/bookmarks/browser/bookmark_client.h ('k') | components/bookmarks/browser/bookmark_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698