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

Unified Diff: chrome/browser/suspend_controller.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/safe_browsing/safe_browsing_service.cc ('k') | chrome/browser/suspend_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/suspend_controller.h
===================================================================
--- chrome/browser/suspend_controller.h (revision 6119)
+++ chrome/browser/suspend_controller.h (working copy)
@@ -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__
-
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.cc ('k') | chrome/browser/suspend_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698