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

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: 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void DeleteBookmarkFolders(BookmarkModel* model, const std::vector<int64>& ids); 100 void DeleteBookmarkFolders(BookmarkModel* model, const std::vector<int64>& ids);
101 101
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 // Returns the node with |id|, or NULL if there is no node with |id|.
111 const BookmarkNode* GetNodeByID(BookmarkModel* model, int64 id);
sky 2014/04/18 14:07:44 Using a namespace here is wrong. I don't want to p
tfarina 2014/04/18 22:55:46 Done.
112
110 } // namespace bookmark_utils 113 } // namespace bookmark_utils
111 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