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

Side by Side Diff: content/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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/file_metadata_mac.mm ('k') | content/browser/power_save_blocker_common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_POWER_SAVE_BLOCKER_H_ 5 #ifndef CONTENT_BROWSER_POWER_SAVE_BLOCKER_H_
6 #define CHROME_BROWSER_POWER_SAVE_BLOCKER_H_ 6 #define CONTENT_BROWSER_POWER_SAVE_BLOCKER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 10
11 // A RAII-style class to block the system from entering low-power (sleep) mode. 11 // A RAII-style class to block the system from entering low-power (sleep) mode.
12 class PowerSaveBlocker { 12 class PowerSaveBlocker {
13 public: 13 public:
14 explicit PowerSaveBlocker(bool enabled); 14 explicit PowerSaveBlocker(bool enabled);
15 ~PowerSaveBlocker(); 15 ~PowerSaveBlocker();
16 16
(...skipping 15 matching lines...) Expand all
32 // Invokes AdjustBlockCount on the UI thread. 32 // Invokes AdjustBlockCount on the UI thread.
33 static void PostAdjustBlockCount(int delta); 33 static void PostAdjustBlockCount(int delta);
34 34
35 bool enabled_; 35 bool enabled_;
36 36
37 static int blocker_count_; 37 static int blocker_count_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(PowerSaveBlocker); 39 DISALLOW_COPY_AND_ASSIGN(PowerSaveBlocker);
40 }; 40 };
41 41
42 #endif // CHROME_BROWSER_POWER_SAVE_BLOCKER_H_ 42 #endif // CONTENT_BROWSER_POWER_SAVE_BLOCKER_H_
OLDNEW
« no previous file with comments | « content/browser/file_metadata_mac.mm ('k') | content/browser/power_save_blocker_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698