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

Unified Diff: device/power_save_blocker/power_save_blocker_impl.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_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_
« no previous file with comments | « device/power_save_blocker/power_save_blocker_export.h ('k') | device/power_save_blocker/power_save_blocker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698