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

Side by Side Diff: chrome/browser/history/top_sites_impl.h

Issue 441623002: Eliminate sending NOTIFICATION_TOP_SITES_* from TopSites (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix incorrect parmeter being passed in notification Created 6 years, 3 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 | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/history/top_sites_impl.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_HISTORY_TOP_SITES_IMPL_H_ 5 #ifndef CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_
6 #define CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_ 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 int num_results_to_request_from_history() const; 198 int num_results_to_request_from_history() const;
199 199
200 // Invoked when transitioning to LOADED. Notifies any queued up callbacks. 200 // Invoked when transitioning to LOADED. Notifies any queued up callbacks.
201 // Should be called from the UI thread. 201 // Should be called from the UI thread.
202 void MoveStateToLoaded(); 202 void MoveStateToLoaded();
203 203
204 void ResetThreadSafeCache(); 204 void ResetThreadSafeCache();
205 205
206 void ResetThreadSafeImageCache(); 206 void ResetThreadSafeImageCache();
207 207
208 void NotifyTopSitesChanged();
209
210 // Stops and starts timer with a delay of |delta|. 208 // Stops and starts timer with a delay of |delta|.
211 void RestartQueryForTopSitesTimer(base::TimeDelta delta); 209 void RestartQueryForTopSitesTimer(base::TimeDelta delta);
212 210
213 // Callback from TopSites with the top sites/thumbnails. Should be called 211 // Callback from TopSites with the top sites/thumbnails. Should be called
214 // from the UI thread. 212 // from the UI thread.
215 void OnGotMostVisitedThumbnails( 213 void OnGotMostVisitedThumbnails(
216 const scoped_refptr<MostVisitedThumbnails>& thumbnails); 214 const scoped_refptr<MostVisitedThumbnails>& thumbnails);
217 215
218 // Called when history service returns a list of top URLs. 216 // Called when history service returns a list of top URLs.
219 void OnTopSitesAvailableFromHistory(const MostVisitedURLList* data); 217 void OnTopSitesAvailableFromHistory(const MostVisitedURLList* data);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 262
265 // Are we loaded? 263 // Are we loaded?
266 bool loaded_; 264 bool loaded_;
267 265
268 DISALLOW_COPY_AND_ASSIGN(TopSitesImpl); 266 DISALLOW_COPY_AND_ASSIGN(TopSitesImpl);
269 }; 267 };
270 268
271 } // namespace history 269 } // namespace history
272 270
273 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_ 271 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/history/top_sites_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698