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

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

Issue 6901110: GTK: Query TopSites for the Most Visited pages and populate fill in the global History menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ooops. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/history/top_sites.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) 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_HISTORY_TOP_SITES_H_ 5 #ifndef CHROME_BROWSER_HISTORY_TOP_SITES_H_
6 #define CHROME_BROWSER_HISTORY_TOP_SITES_H_ 6 #define CHROME_BROWSER_HISTORY_TOP_SITES_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 // changes depending upon how many urls have been blacklisted. 285 // changes depending upon how many urls have been blacklisted.
286 int num_results_to_request_from_history() const; 286 int num_results_to_request_from_history() const;
287 287
288 // Invoked when transitioning to LOADED. Notifies any queued up callbacks. 288 // Invoked when transitioning to LOADED. Notifies any queued up callbacks.
289 void MoveStateToLoaded(); 289 void MoveStateToLoaded();
290 290
291 void ResetThreadSafeCache(); 291 void ResetThreadSafeCache();
292 292
293 void ResetThreadSafeImageCache(); 293 void ResetThreadSafeImageCache();
294 294
295 void NotifyTopSitesChanged();
296
295 // Stops and starts timer with a delay of |delta|. 297 // Stops and starts timer with a delay of |delta|.
296 void RestartQueryForTopSitesTimer(base::TimeDelta delta); 298 void RestartQueryForTopSitesTimer(base::TimeDelta delta);
297 299
298 // Callback after TopSitesBackend has finished migration. This tells history 300 // Callback after TopSitesBackend has finished migration. This tells history
299 // to finish it's side of migration (nuking thumbnails on disk). 301 // to finish it's side of migration (nuking thumbnails on disk).
300 void OnHistoryMigrationWrittenToDisk( 302 void OnHistoryMigrationWrittenToDisk(
301 CancelableRequestProvider::Handle handle); 303 CancelableRequestProvider::Handle handle);
302 304
303 // Callback from TopSites with the top sites/thumbnails. 305 // Callback from TopSites with the top sites/thumbnails.
304 void OnGotMostVisitedThumbnails(CancelableRequestProvider::Handle handle, 306 void OnGotMostVisitedThumbnails(CancelableRequestProvider::Handle handle,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 373
372 // Are we loaded? 374 // Are we loaded?
373 bool loaded_; 375 bool loaded_;
374 376
375 DISALLOW_COPY_AND_ASSIGN(TopSites); 377 DISALLOW_COPY_AND_ASSIGN(TopSites);
376 }; 378 };
377 379
378 } // namespace history 380 } // namespace history
379 381
380 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_ 382 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/top_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698