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

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

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // Uses num_urls_changed 266 // Uses num_urls_changed
267 base::TimeDelta GetUpdateDelay(); 267 base::TimeDelta GetUpdateDelay();
268 268
269 // Executes all of the callbacks in |pending_callbacks|. This is used after 269 // Executes all of the callbacks in |pending_callbacks|. This is used after
270 // we finish loading if any requests came in before we loaded. 270 // we finish loading if any requests came in before we loaded.
271 static void ProcessPendingCallbacks( 271 static void ProcessPendingCallbacks(
272 const PendingCallbackSet& pending_callbacks, 272 const PendingCallbackSet& pending_callbacks,
273 const MostVisitedURLList& urls); 273 const MostVisitedURLList& urls);
274 274
275 // Implementation of NotificationObserver. 275 // Implementation of NotificationObserver.
276 virtual void Observe(NotificationType type, 276 virtual void Observe(int type,
277 const NotificationSource& source, 277 const NotificationSource& source,
278 const NotificationDetails& details); 278 const NotificationDetails& details);
279 279
280 // Resets top_sites_ and updates the db (in the background). All mutations to 280 // Resets top_sites_ and updates the db (in the background). All mutations to
281 // top_sites_ *must* go through this. 281 // top_sites_ *must* go through this.
282 void SetTopSites(const MostVisitedURLList& new_top_sites); 282 void SetTopSites(const MostVisitedURLList& new_top_sites);
283 283
284 // Returns the number of most visted results to request from history. This 284 // Returns the number of most visted results to request from history. This
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;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 376
377 // Are we loaded? 377 // Are we loaded?
378 bool loaded_; 378 bool loaded_;
379 379
380 DISALLOW_COPY_AND_ASSIGN(TopSites); 380 DISALLOW_COPY_AND_ASSIGN(TopSites);
381 }; 381 };
382 382
383 } // namespace history 383 } // namespace history
384 384
385 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_ 385 #endif // CHROME_BROWSER_HISTORY_TOP_SITES_H_
OLDNEW
« no previous file with comments | « chrome/browser/history/in_memory_history_backend.cc ('k') | chrome/browser/history/top_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698