| OLD | NEW |
| 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_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 // Used to access the bookmark bar within a particular sync profile. | 25 // Used to access the bookmark bar within a particular sync profile. |
| 26 const BookmarkNode* GetBookmarkBarNode(int index) WARN_UNUSED_RESULT; | 26 const BookmarkNode* GetBookmarkBarNode(int index) WARN_UNUSED_RESULT; |
| 27 | 27 |
| 28 // Used to access the "other bookmarks" node within a particular sync profile. | 28 // Used to access the "other bookmarks" node within a particular sync profile. |
| 29 const BookmarkNode* GetOtherNode(int index) WARN_UNUSED_RESULT; | 29 const BookmarkNode* GetOtherNode(int index) WARN_UNUSED_RESULT; |
| 30 | 30 |
| 31 // Used to access the "Synced Bookmarks" node within a particular sync profile. | 31 // Used to access the "Synced Bookmarks" node within a particular sync profile. |
| 32 const BookmarkNode* GetSyncedBookmarksNode(int index) WARN_UNUSED_RESULT; | 32 const BookmarkNode* GetSyncedBookmarksNode(int index) WARN_UNUSED_RESULT; |
| 33 | 33 |
| 34 // Used to access the "Managed Bookmarks" node for the given profile. |
| 35 const BookmarkNode* GetManagedNode(int index) WARN_UNUSED_RESULT; |
| 36 |
| 34 // Used to access the bookmarks within the verifier sync profile. | 37 // Used to access the bookmarks within the verifier sync profile. |
| 35 BookmarkModel* GetVerifierBookmarkModel() WARN_UNUSED_RESULT; | 38 BookmarkModel* GetVerifierBookmarkModel() WARN_UNUSED_RESULT; |
| 36 | 39 |
| 37 // Adds a URL with address |url| and title |title| to the bookmark bar of | 40 // Adds a URL with address |url| and title |title| to the bookmark bar of |
| 38 // profile |profile|. Returns a pointer to the node that was added. | 41 // profile |profile|. Returns a pointer to the node that was added. |
| 39 const BookmarkNode* AddURL( | 42 const BookmarkNode* AddURL( |
| 40 int profile, | 43 int profile, |
| 41 const std::string& title, | 44 const std::string& title, |
| 42 const GURL& url) WARN_UNUSED_RESULT; | 45 const GURL& url) WARN_UNUSED_RESULT; |
| 43 | 46 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // was added. | 81 // was added. |
| 79 const BookmarkNode* AddFolder( | 82 const BookmarkNode* AddFolder( |
| 80 int profile, | 83 int profile, |
| 81 const BookmarkNode* parent, | 84 const BookmarkNode* parent, |
| 82 int index, | 85 int index, |
| 83 const std::string& title) WARN_UNUSED_RESULT; | 86 const std::string& title) WARN_UNUSED_RESULT; |
| 84 | 87 |
| 85 // Changes the title of the node |node| in the bookmark model of profile | 88 // Changes the title of the node |node| in the bookmark model of profile |
| 86 // |profile| to |new_title|. | 89 // |profile| to |new_title|. |
| 87 void SetTitle(int profile, | 90 void SetTitle(int profile, |
| 88 const BookmarkNode* node, | 91 const BookmarkNode* node, |
| 89 const std::string& new_title); | 92 const std::string& new_title); |
| 90 | 93 |
| 91 // The source of the favicon. | 94 // The source of the favicon. |
| 92 enum FaviconSource { | 95 enum FaviconSource { |
| 93 FROM_UI, | 96 FROM_UI, |
| 94 FROM_SYNC | 97 FROM_SYNC |
| 95 }; | 98 }; |
| 96 | 99 |
| 97 // Sets the |icon_url| and |image| data for the favicon for |node| in the | 100 // Sets the |icon_url| and |image| data for the favicon for |node| in the |
| 98 // bookmark model for |profile|. | 101 // bookmark model for |profile|. |
| 99 void SetFavicon(int profile, | 102 void SetFavicon(int profile, |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 201 |
| 199 // Returns a subfolder name identifiable by |i|. | 202 // Returns a subfolder name identifiable by |i|. |
| 200 std::string IndexedSubfolderName(int i); | 203 std::string IndexedSubfolderName(int i); |
| 201 | 204 |
| 202 // Returns a subsubfolder name identifiable by |i|. | 205 // Returns a subsubfolder name identifiable by |i|. |
| 203 std::string IndexedSubsubfolderName(int i); | 206 std::string IndexedSubsubfolderName(int i); |
| 204 | 207 |
| 205 } // namespace bookmarks_helper | 208 } // namespace bookmarks_helper |
| 206 | 209 |
| 207 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_ | 210 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_ |
| OLD | NEW |