summaryrefslogtreecommitdiffstats
path: root/chrome/browser/suspend_controller.h
diff options
context:
space:
mode:
authormbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 19:07:32 +0000
committermbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-14 19:07:32 +0000
commit322f7f7005061fee5e3b691e6aee318ea93a7eb8 (patch)
tree4d743cbbbee965d8b087171b9ee315f2ffc93865 /chrome/browser/suspend_controller.h
parenta618550847f7c09eea7bb27e43bb226f330e5525 (diff)
downloadchromium_src-322f7f7005061fee5e3b691e6aee318ea93a7eb8.zip
chromium_src-322f7f7005061fee5e3b691e6aee318ea93a7eb8.tar.gz
chromium_src-322f7f7005061fee5e3b691e6aee318ea93a7eb8.tar.bz2
Change to integrate SystemMonitor changes into chrome.
This enables the dynamic detection of battery status changes so that we can turn on/off the hi-res timer. Review URL: http://codereview.chromium.org/10264 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5489 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/suspend_controller.h')
-rw-r--r--chrome/browser/suspend_controller.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/chrome/browser/suspend_controller.h b/chrome/browser/suspend_controller.h
deleted file mode 100644
index c151d0c..0000000
--- a/chrome/browser/suspend_controller.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// The SuspendController keeps track of actions related to the computer going
-// into power savings mode. Its purpose right now is to close all network
-// requests and prevent creation of new requests until the computer resumes.
-
-#ifndef CHROME_BROWSER_SUSPEND_CONTROLLER_H__
-#define CHROME_BROWSER_SUSPEND_CONTROLLER_H__
-
-#include "base/basictypes.h"
-#include "chrome/browser/profile.h"
-
-class Profile;
-
-// The browser process owns the only instance of this class.
-class SuspendController : public base::RefCountedThreadSafe<SuspendController> {
- public:
- SuspendController() {}
- ~SuspendController() {}
-
- // Called when the system is going to be suspended.
- static void OnSuspend(Profile* profile);
-
- // Called when the system has been resumed.
- static void OnResume(Profile* profile);
-
- private:
- // Run on the io_thread.
- void StopRequests(Profile* profile);
- void AllowNewRequests(Profile* profile);
-
- static bool is_suspended_;
-
- DISALLOW_EVIL_CONSTRUCTORS(SuspendController);
-};
-
-#endif // CHROME_BROWSER_SUSPEND_CONTROLLER_H__
-