| 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_
|
|
|