diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-30 18:43:45 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-30 18:43:45 +0000 |
commit | c3d634d79a21a64038e5fcb1505904c554ece8ea (patch) | |
tree | cc5f5aabc6aeeb5d190fda5f8526050e093eda83 /chrome/browser/safe_browsing/safe_browsing_service.h | |
parent | bb25dfd5d6354dd52f5f693269b807fd4f46161e (diff) | |
download | chromium_src-c3d634d79a21a64038e5fcb1505904c554ece8ea.zip chromium_src-c3d634d79a21a64038e5fcb1505904c554ece8ea.tar.gz chromium_src-c3d634d79a21a64038e5fcb1505904c554ece8ea.tar.bz2 |
The SafeBrowsing system had a bunch of plumbing for system resume that wasn't actually hooked to anything. Seems better to not have it than to have it look like it's doing something when it isn't.
BUG=25336
TEST=none
Review URL: http://codereview.chromium.org/347024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30607 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.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.h b/chrome/browser/safe_browsing/safe_browsing_service.h index cc994ff..95417b7 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. @@ -166,11 +164,6 @@ 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 OnResume(); - // Report any pages that contain malware sub-resources to the SafeBrowsing // service. void ReportMalware(const GURL& malware_url, @@ -231,10 +224,6 @@ class SafeBrowsingService void HandleOneCheck(SafeBrowsingCheck* check, const std::vector<SBFullHashResult>& full_hashes); - // Runs on the database thread to inform the database we've resumed from a low - // power state. - void HandleResume(); - // Invoked on the UI thread to show the blocking page. void DoDisplayBlockingPage(const UnsafeResource& resource); |