Index: device/power_save_blocker/power_save_blocker_impl.h |
diff --git a/content/browser/power_save_blocker_impl.h b/device/power_save_blocker/power_save_blocker_impl.h |
similarity index 83% |
rename from content/browser/power_save_blocker_impl.h |
rename to device/power_save_blocker/power_save_blocker_impl.h |
index dcc9e62ff8b0aeff09b581ffee1b6017c151c38d..2f7cadb76f8fa98f65d63806ff273d1464e1f1e9 100644 |
--- a/content/browser/power_save_blocker_impl.h |
+++ b/device/power_save_blocker/power_save_blocker_impl.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_BROWSER_POWER_SAVE_BLOCKER_IMPL_H_ |
-#define CONTENT_BROWSER_POWER_SAVE_BLOCKER_IMPL_H_ |
+#ifndef DEVICE_POWER_SAVE_BLOCKER_POWER_SAVE_BLOCKER_IMPL_H_ |
+#define DEVICE_POWER_SAVE_BLOCKER_POWER_SAVE_BLOCKER_IMPL_H_ |
#include <string> |
@@ -13,13 +13,14 @@ |
#include "base/sequenced_task_runner.h" |
#include "base/single_thread_task_runner.h" |
#include "build/build_config.h" |
-#include "content/public/browser/power_save_blocker.h" |
+#include "device/power_save_blocker/power_save_blocker.h" |
+#include "device/power_save_blocker/power_save_blocker_export.h" |
#if defined(OS_ANDROID) |
#include "ui/android/view_android.h" |
#endif // OS_ANDROID |
-namespace content { |
+namespace device { |
class WebContents; |
@@ -37,7 +38,7 @@ class PowerSaveBlockerImpl : public PowerSaveBlocker { |
// On Android, the kPowerSaveBlockPreventDisplaySleep type of |
// PowerSaveBlocker should associated with a View, so the blocker can be |
// removed by the platform. |
- void InitDisplaySleepBlocker( |
+ DEVICE_POWER_SAVE_BLOCKER_EXPORT void InitDisplaySleepBlocker( |
const base::WeakPtr<ui::ViewAndroid>& view_android); |
#endif |
@@ -69,6 +70,6 @@ class PowerSaveBlockerImpl : public PowerSaveBlocker { |
DISALLOW_COPY_AND_ASSIGN(PowerSaveBlockerImpl); |
}; |
-} // namespace content |
+} // namespace device |
-#endif // CONTENT_BROWSER_POWER_SAVE_BLOCKER_IMPL_H_ |
+#endif // DEVICE_POWER_SAVE_BLOCKER_POWER_SAVE_BLOCKER_IMPL_H_ |