Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 21 namespace bookmarks_helper { | 21 namespace bookmarks_helper { |
| 22 | 22 |
| 23 // Used to access the bookmark model within a particular sync profile. | 23 // Used to access the bookmark model within a particular sync profile. |
| 24 BookmarkModel* GetBookmarkModel(int index) WARN_UNUSED_RESULT; | 24 BookmarkModel* GetBookmarkModel(int index) WARN_UNUSED_RESULT; |
| 25 | 25 |
| 26 // Used to access the bookmark bar within a particular sync profile. | 26 // Used to access the bookmark bar within a particular sync profile. |
| 27 const BookmarkNode* GetBookmarkBarNode(int index) WARN_UNUSED_RESULT; | 27 const BookmarkNode* GetBookmarkBarNode(int index) WARN_UNUSED_RESULT; |
| 28 | 28 |
| 29 // Used to access the "other bookmarks" node within a particular sync profile. | 29 // Used to access the "other bookmarks" node within a particular sync profile. |
| 30 const BookmarkNode* GetOtherNode(int index) WARN_UNUSED_RESULT; | 30 const BookmarkNode* GetOtherNode(int index) WARN_UNUSED_RESULT; |
| 31 | 31 |
|
Raghu Simha
2012/03/02 04:24:29
nit: add a brief comment here.
Nicolas Zea
2012/03/02 22:35:14
Done.
| |
| 32 const BookmarkNode* GetSyncedBookmarksNode(int index) WARN_UNUSED_RESULT; | |
| 33 | |
| 32 // Used to access the bookmarks within the verifier sync profile. | 34 // Used to access the bookmarks within the verifier sync profile. |
| 33 BookmarkModel* GetVerifierBookmarkModel() WARN_UNUSED_RESULT; | 35 BookmarkModel* GetVerifierBookmarkModel() WARN_UNUSED_RESULT; |
| 34 | 36 |
| 35 // Adds a URL with address |url| and title |title| to the bookmark bar of | 37 // Adds a URL with address |url| and title |title| to the bookmark bar of |
| 36 // profile |profile|. Returns a pointer to the node that was added. | 38 // profile |profile|. Returns a pointer to the node that was added. |
| 37 const BookmarkNode* AddURL( | 39 const BookmarkNode* AddURL( |
| 38 int profile, | 40 int profile, |
| 39 const std::wstring& title, | 41 const std::wstring& title, |
| 40 const GURL& url) WARN_UNUSED_RESULT; | 42 const GURL& url) WARN_UNUSED_RESULT; |
| 41 | 43 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 177 | 179 |
| 178 // Returns a subfolder name identifiable by |i|. | 180 // Returns a subfolder name identifiable by |i|. |
| 179 std::wstring IndexedSubfolderName(int i); | 181 std::wstring IndexedSubfolderName(int i); |
| 180 | 182 |
| 181 // Returns a subsubfolder name identifiable by |i|. | 183 // Returns a subsubfolder name identifiable by |i|. |
| 182 std::wstring IndexedSubsubfolderName(int i); | 184 std::wstring IndexedSubsubfolderName(int i); |
| 183 | 185 |
| 184 } // namespace bookmarks_helper | 186 } // namespace bookmarks_helper |
| 185 | 187 |
| 186 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_ | 188 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_ |
| OLD | NEW |