Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_EXTENSION_BOOKMARK_HELPERS_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARK_HELPERS_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARK_HELPERS_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARK_HELPERS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/values.h" | 9 #include <string> |
|
Lei Zhang
2010/08/05 19:00:18
I'm removing unneeded headers one header at a time
| |
| 10 #include "chrome/browser/bookmarks/bookmark_model.h" | 10 |
| 11 #include "base/basictypes.h" | |
| 12 | |
| 13 class BookmarkModel; | |
| 14 class BookmarkNode; | |
| 15 class DictionaryValue; | |
| 16 class ListValue; | |
| 11 | 17 |
| 12 // Helper functions. | 18 // Helper functions. |
| 13 namespace extension_bookmark_helpers { | 19 namespace extension_bookmark_helpers { |
| 14 | 20 |
| 15 DictionaryValue* GetNodeDictionary(const BookmarkNode* node, | 21 DictionaryValue* GetNodeDictionary(const BookmarkNode* node, |
| 16 bool recurse, | 22 bool recurse, |
| 17 bool only_folders); | 23 bool only_folders); |
| 18 | 24 |
| 19 // Add a JSON representation of |node| to the JSON |list|. | 25 // Add a JSON representation of |node| to the JSON |list|. |
| 20 void AddNode(const BookmarkNode* node, ListValue* list, bool recurse); | 26 void AddNode(const BookmarkNode* node, ListValue* list, bool recurse); |
| 21 | 27 |
| 22 void AddNodeFoldersOnly(const BookmarkNode* node, | 28 void AddNodeFoldersOnly(const BookmarkNode* node, |
| 23 ListValue* list, | 29 ListValue* list, |
| 24 bool recurse); | 30 bool recurse); |
| 25 | 31 |
| 26 bool RemoveNode(BookmarkModel* model, | 32 bool RemoveNode(BookmarkModel* model, |
| 27 int64 id, | 33 int64 id, |
| 28 bool recursive, | 34 bool recursive, |
| 29 std::string* error); | 35 std::string* error); |
| 30 | 36 |
| 31 } // namespace extension_bookmark_helpers | 37 } // namespace extension_bookmark_helpers |
| 32 | 38 |
| 33 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARK_HELPERS_H_ | 39 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARK_HELPERS_H_ |
| OLD | NEW |