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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_service.h

Issue 12817: A new copy of the old system monitor changelist. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/profile_manager.cc ('k') | chrome/browser/safe_browsing/safe_browsing_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/safe_browsing_service.h
===================================================================
--- chrome/browser/safe_browsing/safe_browsing_service.h (revision 6119)
+++ chrome/browser/safe_browsing/safe_browsing_service.h (working copy)
@@ -16,6 +16,7 @@
#include "base/hash_tables.h"
#include "base/ref_counted.h"
#include "base/scoped_ptr.h"
+#include "base/system_monitor.h"
#include "base/thread.h"
#include "base/time.h"
#include "chrome/browser/safe_browsing/safe_browsing_util.h"
@@ -31,7 +32,8 @@
// Construction needs to happen on the main thread.
class SafeBrowsingService
- : public base::RefCountedThreadSafe<SafeBrowsingService> {
+ : public base::RefCountedThreadSafe<SafeBrowsingService>,
+ public base::SystemMonitor::PowerObserver {
public:
// Users of this service implement this interface to be notified
// asynchronously of the result.
@@ -169,10 +171,12 @@
// the current page is 'safe'.
void LogPauseDelay(base::TimeDelta time);
+ // PowerObserver notifications
// We defer SafeBrowsing work for a short duration when the computer comes
// out of a suspend state to avoid thrashing the disk.
- void OnSuspend();
- void OnResume();
+ void OnPowerStateChange(base::SystemMonitor*) {};
+ void OnSuspend(base::SystemMonitor*);
+ void OnResume(base::SystemMonitor*);
bool new_safe_browsing() const { return new_safe_browsing_; }
« no previous file with comments | « chrome/browser/profile_manager.cc ('k') | chrome/browser/safe_browsing/safe_browsing_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698