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

Unified Diff: chrome/browser/power_save_blocker.h

Issue 7388002: Move dependencies of download\base_file from chrome to content. These are all trivial file moves. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 months 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/mac/file_metadata.mm ('k') | chrome/browser/power_save_blocker_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/power_save_blocker.h
===================================================================
--- chrome/browser/power_save_blocker.h (revision 92629)
+++ chrome/browser/power_save_blocker.h (working copy)
@@ -1,42 +0,0 @@
-// Copyright (c) 2011 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.
-
-#ifndef CHROME_BROWSER_POWER_SAVE_BLOCKER_H_
-#define CHROME_BROWSER_POWER_SAVE_BLOCKER_H_
-#pragma once
-
-#include "base/basictypes.h"
-
-// A RAII-style class to block the system from entering low-power (sleep) mode.
-class PowerSaveBlocker {
- public:
- explicit PowerSaveBlocker(bool enabled);
- ~PowerSaveBlocker();
-
- bool enabled() const { return enabled_; }
-
- // Puts the sleep mode block into effect.
- void Enable();
- // Disables the sleep block.
- void Disable();
-
- private:
- // Platform-specific function called when enable state is changed.
- // Guaranteed to be called only from the UI thread.
- static void ApplyBlock(bool blocked);
-
- // Called only from UI thread.
- static void AdjustBlockCount(int delta);
-
- // Invokes AdjustBlockCount on the UI thread.
- static void PostAdjustBlockCount(int delta);
-
- bool enabled_;
-
- static int blocker_count_;
-
- DISALLOW_COPY_AND_ASSIGN(PowerSaveBlocker);
-};
-
-#endif // CHROME_BROWSER_POWER_SAVE_BLOCKER_H_
« no previous file with comments | « chrome/browser/mac/file_metadata.mm ('k') | chrome/browser/power_save_blocker_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698