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

Unified Diff: content/browser/power_save_blocker_win.cc

Issue 11340029: Move remaining files in content\browser to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 2 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
Index: content/browser/power_save_blocker_win.cc
===================================================================
--- content/browser/power_save_blocker_win.cc (revision 164795)
+++ content/browser/power_save_blocker_win.cc (working copy)
@@ -12,6 +12,7 @@
#include "base/win/windows_version.h"
#include "content/public/browser/browser_thread.h"
+namespace content {
namespace {
int g_blocker_count[2];
@@ -79,7 +80,7 @@
DCHECK(success);
}
-void ApplySimpleBlock(content::PowerSaveBlocker::PowerSaveBlockerType type,
+void ApplySimpleBlock(PowerSaveBlocker::PowerSaveBlockerType type,
int delta) {
tfarina 2012/10/30 22:19:06 probably fits above now.
g_blocker_count[type] += delta;
DCHECK_GE(g_blocker_count[type], 0);
@@ -88,7 +89,7 @@
return;
DWORD this_flag = 0;
- if (type == content::PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension)
+ if (type == PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension)
this_flag |= ES_SYSTEM_REQUIRED;
else
this_flag |= ES_DISPLAY_REQUIRED;
@@ -106,8 +107,6 @@
} // namespace.
-namespace content {
-
class PowerSaveBlocker::Delegate
: public base::RefCountedThreadSafe<PowerSaveBlocker::Delegate> {
public:

Powered by Google App Engine
This is Rietveld 408576698