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

Unified Diff: device/wake_lock/wake_lock_service_context.h

Issue 2389743002: Content Modularization Project: Move Wake Lock to //device (Closed)
Patch Set: Eliminate frame reference Created 4 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: device/wake_lock/wake_lock_service_context.h
diff --git a/content/browser/wake_lock/wake_lock_service_context.h b/device/wake_lock/wake_lock_service_context.h
similarity index 73%
rename from content/browser/wake_lock/wake_lock_service_context.h
rename to device/wake_lock/wake_lock_service_context.h
index 1ee85fe0b37e48eab0c641de35d527e168490139..01e7ebef29d1c6df794266af38e405b3ef41176d 100644
--- a/content/browser/wake_lock/wake_lock_service_context.h
+++ b/device/wake_lock/wake_lock_service_context.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_WAKE_LOCK_WAKE_LOCK_SERVICE_CONTEXT_H_
-#define CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_SERVICE_CONTEXT_H_
+#ifndef DEVICE_WAKE_LOCK_WAKE_LOCK_SERVICE_CONTEXT_H_
+#define DEVICE_WAKE_LOCK_WAKE_LOCK_SERVICE_CONTEXT_H_
#include <memory>
#include <set>
@@ -14,18 +14,15 @@
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "base/sequenced_task_runner.h"
-#include "content/browser/wake_lock/wake_lock_service_impl.h"
-#include "content/common/content_export.h"
+#include "device/wake_lock/wake_lock_service_impl.h"
#include "mojo/public/cpp/bindings/interface_request.h"
#include "ui/gfx/native_widget_types.h"
namespace device {
-class PowerSaveBlocker;
-} // namespace device
-namespace content {
+class PowerSaveBlocker;
-class CONTENT_EXPORT WakeLockServiceContext {
+class WakeLockServiceContext {
public:
WakeLockServiceContext(
scoped_refptr<base::SingleThreadTaskRunner> file_task_runner,
@@ -33,8 +30,7 @@ class CONTENT_EXPORT WakeLockServiceContext {
~WakeLockServiceContext();
// Creates a WakeLockServiceImpl that is strongly bound to |request|.
- void CreateService(
- mojo::InterfaceRequest<blink::mojom::WakeLockService> request);
+ void CreateService(mojo::InterfaceRequest<mojom::WakeLockService> request);
// Requests wake lock.
void RequestWakeLock();
@@ -56,7 +52,7 @@ class CONTENT_EXPORT WakeLockServiceContext {
int num_lock_requests_;
// The actual power save blocker for screen.
- std::unique_ptr<device::PowerSaveBlocker> wake_lock_;
+ std::unique_ptr<PowerSaveBlocker> wake_lock_;
base::Callback<gfx::NativeView()> native_view_getter_;
base::WeakPtrFactory<WakeLockServiceContext> weak_factory_;
@@ -64,6 +60,6 @@ class CONTENT_EXPORT WakeLockServiceContext {
DISALLOW_COPY_AND_ASSIGN(WakeLockServiceContext);
};
-} // namespace content
+} // namespace device
-#endif // CONTENT_BROWSER_WAKE_LOCK_WAKE_LOCK_SERVICE_CONTEXT_H_
+#endif // DEVICE_WAKE_LOCK_WAKE_LOCK_SERVICE_CONTEXT_H_
« no previous file with comments | « device/wake_lock/public/interfaces/wake_lock_service.mojom ('k') | device/wake_lock/wake_lock_service_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698