summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing/safe_browsing_service.h
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-01 00:52:40 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-01 00:52:40 +0000
commit3abd6bbdfb0a6d8367a2c56d4846e3d70d9da660 (patch)
treec6b872305f258a653ac0203eeb25b5b08ae2eb00 /chrome/browser/safe_browsing/safe_browsing_service.h
parent4f470ec4e08cf042997d68c55bb7aeeeeaa1209c (diff)
downloadchromium_src-3abd6bbdfb0a6d8367a2c56d4846e3d70d9da660.zip
chromium_src-3abd6bbdfb0a6d8367a2c56d4846e3d70d9da660.tar.gz
chromium_src-3abd6bbdfb0a6d8367a2c56d4846e3d70d9da660.tar.bz2
Rollback
Review URL: http://codereview.chromium.org/13009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6127 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing/safe_browsing_service.h')
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_service.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.h b/chrome/browser/safe_browsing/safe_browsing_service.h
index c3125e5..761acb2 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.h
+++ b/chrome/browser/safe_browsing/safe_browsing_service.h
@@ -16,7 +16,6 @@
#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"
@@ -32,8 +31,7 @@ class SafeBrowsingProtocolManager;
// Construction needs to happen on the main thread.
class SafeBrowsingService
- : public base::RefCountedThreadSafe<SafeBrowsingService>,
- public base::SystemMonitor::PowerObserver {
+ : public base::RefCountedThreadSafe<SafeBrowsingService> {
public:
// Users of this service implement this interface to be notified
// asynchronously of the result.
@@ -171,12 +169,10 @@ class SafeBrowsingService
// 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 OnPowerStateChange(base::SystemMonitor*) {};
- void OnSuspend(base::SystemMonitor*);
- void OnResume(base::SystemMonitor*);
+ void OnSuspend();
+ void OnResume();
bool new_safe_browsing() const { return new_safe_browsing_; }