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

Side by Side Diff: chrome/browser/sync/test/integration/bookmarks_helper.h

Issue 1128343004: Allow favicons for synced bookmarks to expire (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/bookmarks_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/bookmarks_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698