| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 // Sets the |icon_url| and |image| data for the favicon for |node| in the | 101 // Sets the |icon_url| and |image| data for the favicon for |node| in the |
| 102 // bookmark model for |profile|. | 102 // bookmark model for |profile|. |
| 103 void SetFavicon(int profile, | 103 void SetFavicon(int profile, |
| 104 const bookmarks::BookmarkNode* node, | 104 const bookmarks::BookmarkNode* node, |
| 105 const GURL& icon_url, | 105 const GURL& icon_url, |
| 106 const gfx::Image& image, | 106 const gfx::Image& image, |
| 107 FaviconSource source); | 107 FaviconSource source); |
| 108 | 108 |
| 109 // Expires the favicon for |node| in the bookmark model for |profile|. |
| 110 void ExpireFavicon(int profile, const bookmarks::BookmarkNode* node); |
| 111 |
| 112 // Checks whether the favicon at |icon_url| for |profile| is expired; |
| 113 void CheckFaviconExpired(int profile, const GURL& icon_url); |
| 114 |
| 109 // Changes the url of the node |node| in the bookmark model of profile | 115 // Changes the url of the node |node| in the bookmark model of profile |
| 110 // |profile| to |new_url|. Returns a pointer to the node with the changed url. | 116 // |profile| to |new_url|. Returns a pointer to the node with the changed url. |
| 111 const bookmarks::BookmarkNode* SetURL(int profile, | 117 const bookmarks::BookmarkNode* SetURL(int profile, |
| 112 const bookmarks::BookmarkNode* node, | 118 const bookmarks::BookmarkNode* node, |
| 113 const GURL& new_url) WARN_UNUSED_RESULT; | 119 const GURL& new_url) WARN_UNUSED_RESULT; |
| 114 | 120 |
| 115 // Moves the node |node| in the bookmark model of profile |profile| so it ends | 121 // Moves the node |node| in the bookmark model of profile |profile| so it ends |
| 116 // up under the node |new_parent| at position |index|. | 122 // up under the node |new_parent| at position |index|. |
| 117 void Move(int profile, | 123 void Move(int profile, |
| 118 const bookmarks::BookmarkNode* node, | 124 const bookmarks::BookmarkNode* node, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 215 |
| 210 // Returns a subfolder name identifiable by |i|. | 216 // Returns a subfolder name identifiable by |i|. |
| 211 std::string IndexedSubfolderName(int i); | 217 std::string IndexedSubfolderName(int i); |
| 212 | 218 |
| 213 // Returns a subsubfolder name identifiable by |i|. | 219 // Returns a subsubfolder name identifiable by |i|. |
| 214 std::string IndexedSubsubfolderName(int i); | 220 std::string IndexedSubsubfolderName(int i); |
| 215 | 221 |
| 216 } // namespace bookmarks_helper | 222 } // namespace bookmarks_helper |
| 217 | 223 |
| 218 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_ | 224 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_BOOKMARKS_HELPER_H_ |
| OLD | NEW |