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

Unified Diff: device/power_save_blocker/power_save_blocker.h

Issue 2075153002: Reland of 'Move content/browser/power_save_blocker to //device/power_save_blocker' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missing libs for component mac Created 4 years, 6 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: device/power_save_blocker/power_save_blocker.h
diff --git a/content/public/browser/power_save_blocker.h b/device/power_save_blocker/power_save_blocker.h
similarity index 86%
rename from content/public/browser/power_save_blocker.h
rename to device/power_save_blocker/power_save_blocker.h
index db3c0f25b70c71da8dd7a8866795bbea9da15e82..096d816035d4bbc7f1346a3e08cd8a19bcbb0d7f 100644
--- a/content/public/browser/power_save_blocker.h
+++ b/device/power_save_blocker/power_save_blocker.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_PUBLIC_BROWSER_POWER_SAVE_BLOCKER_H_
-#define CONTENT_PUBLIC_BROWSER_POWER_SAVE_BLOCKER_H_
+#ifndef DEVICE_POWER_SAVE_BLOCKER_POWER_SAVE_BLOCKER_H_
+#define DEVICE_POWER_SAVE_BLOCKER_POWER_SAVE_BLOCKER_H_
#include <memory>
#include <string>
@@ -11,13 +11,13 @@
#include "base/memory/ref_counted.h"
#include "base/sequenced_task_runner.h"
#include "base/single_thread_task_runner.h"
-#include "content/common/content_export.h"
+#include "device/power_save_blocker/power_save_blocker_export.h"
-namespace content {
+namespace device {
// A RAII-style class to block the system from entering low-power (sleep) mode.
// This class is thread-safe; it may be constructed and deleted on any thread.
-class CONTENT_EXPORT PowerSaveBlocker {
+class DEVICE_POWER_SAVE_BLOCKER_EXPORT PowerSaveBlocker {
public:
enum PowerSaveBlockerType {
// Prevent the application from being suspended. On some platforms, apps may
@@ -59,6 +59,6 @@ class CONTENT_EXPORT PowerSaveBlocker {
scoped_refptr<base::SingleThreadTaskRunner> file_task_runner);
};
-} // namespace content
+} // namespace device
-#endif // CONTENT_PUBLIC_BROWSER_POWER_SAVE_BLOCKER_H_
+#endif // DEVICE_POWER_SAVE_BLOCKER_POWER_SAVE_BLOCKER_H_

Powered by Google App Engine
This is Rietveld 408576698