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

Side by Side Diff: chrome/browser/bookmarks/bookmark_utils.h

Issue 242823002: Extract GetNodeByID() method from BookmarkModel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android built and fixed - invert Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // If there are no bookmarks for url, a bookmark is created. 102 // If there are no bookmarks for url, a bookmark is created.
103 void AddIfNotBookmarked(BookmarkModel* model, 103 void AddIfNotBookmarked(BookmarkModel* model,
104 const GURL& url, 104 const GURL& url,
105 const base::string16& title); 105 const base::string16& title);
106 106
107 // Removes all bookmarks for the given |url|. 107 // Removes all bookmarks for the given |url|.
108 void RemoveAllBookmarks(BookmarkModel* model, const GURL& url); 108 void RemoveAllBookmarks(BookmarkModel* model, const GURL& url);
109 109
110 } // namespace bookmark_utils 110 } // namespace bookmark_utils
111 111
112 // Returns the node with |id|, or NULL if there is no node with |id|.
113 const BookmarkNode* GetBookmarkNodeByID(const BookmarkModel* model, int64 id);
114
112 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_ 115 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698