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

Side by Side Diff: chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.h

Issue 320473002: Added the "unmodifiable" property to chrome.bookmarks.BookmarkTreeNode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 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_EXTENSIONS_API_BOOKMARKS_BOOKMARK_API_HELPERS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARK_API_HELPERS_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARK_API_HELPERS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARK_API_HELPERS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "chrome/common/extensions/api/bookmarks.h" 12 #include "chrome/common/extensions/api/bookmarks.h"
13 13
14 class BookmarkModel; 14 class BookmarkModel;
15 class BookmarkNode; 15 class BookmarkNode;
16 class ChromeBookmarkClient; 16 class ChromeBookmarkClient;
17 17
18 // Helper functions. 18 // Helper functions.
19 namespace extensions { 19 namespace extensions {
20 namespace bookmark_api_helpers { 20 namespace bookmark_api_helpers {
21 21
22 // The returned value is owned by the caller. 22 // The returned value is owned by the caller.
23 api::bookmarks::BookmarkTreeNode* GetBookmarkTreeNode( 23 api::bookmarks::BookmarkTreeNode* GetBookmarkTreeNode(
24 ChromeBookmarkClient* client,
not at google - send to devlin 2014/06/05 20:58:26 well one way you could "fix" this is by making thi
Joao da Silva 2014/06/05 21:04:16 I think I'll leave this change as-is to be focused
not at google - send to devlin 2014/06/05 22:21:32 The functions which deal with Extension-generated
Joao da Silva 2014/06/05 22:28:23 Makes sense. These helpers are only used by the i
not at google - send to devlin 2014/06/05 22:29:10 SVGTM.
24 const BookmarkNode* node, 25 const BookmarkNode* node,
25 bool recurse, 26 bool recurse,
26 bool only_folders); 27 bool only_folders);
27 28
28 // Add a JSON representation of |node| to the JSON |nodes|. 29 // Add a JSON representation of |node| to the JSON |nodes|.
29 void AddNode(const BookmarkNode* node, 30 void AddNode(ChromeBookmarkClient* client,
31 const BookmarkNode* node,
30 std::vector<linked_ptr<api::bookmarks::BookmarkTreeNode> >* nodes, 32 std::vector<linked_ptr<api::bookmarks::BookmarkTreeNode> >* nodes,
31 bool recurse); 33 bool recurse);
32 34
33 void AddNodeFoldersOnly(const BookmarkNode* node, 35 void AddNodeFoldersOnly(ChromeBookmarkClient* client,
36 const BookmarkNode* node,
34 std::vector<linked_ptr< 37 std::vector<linked_ptr<
35 api::bookmarks::BookmarkTreeNode> >* nodes, 38 api::bookmarks::BookmarkTreeNode> >* nodes,
36 bool recurse); 39 bool recurse);
37 40
38 bool RemoveNode(ChromeBookmarkClient* client, 41 bool RemoveNode(ChromeBookmarkClient* client,
39 int64 id, 42 int64 id,
40 bool recursive, 43 bool recursive,
41 std::string* error); 44 std::string* error);
42 45
43 } // namespace bookmark_api_helpers 46 } // namespace bookmark_api_helpers
44 } // namespace extensions 47 } // namespace extensions
45 48
46 #endif // CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARK_API_HELPERS_H_ 49 #endif // CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARK_API_HELPERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698