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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 2734943003: Device Service: Decouple Wake Lock from //content (Closed)
Patch Set: Rebase Created 3 years, 9 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: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 89c134f8a7eadfc12650c7a7bcfd71eaef0329a5..e475a183b3dc108917224f3a4232555851832dfc 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -31,6 +31,7 @@
#include "content/browser/renderer_host/render_view_host_delegate.h"
#include "content/browser/renderer_host/render_view_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_delegate.h"
+#include "content/browser/wake_lock/wake_lock_context_host.h"
#include "content/common/accessibility_mode.h"
#include "content/common/content_export.h"
#include "content/public/browser/color_chooser.h"
@@ -43,6 +44,7 @@
#include "content/public/common/renderer_preferences.h"
#include "content/public/common/resource_type.h"
#include "content/public/common/three_d_api_types.h"
+#include "device/wake_lock/public/interfaces/wake_lock_context.mojom.h"
#include "net/base/load_states.h"
#include "net/http/http_response_headers.h"
#include "ppapi/features/features.h"
@@ -78,7 +80,6 @@ class ScreenOrientationProvider;
class SiteInstance;
class TestWebContents;
class TextInputManager;
-class WakeLockServiceContext;
class WebContentsAudioMuter;
class WebContentsDelegate;
class WebContentsImpl;
@@ -488,7 +489,7 @@ class CONTENT_EXPORT WebContentsImpl
RenderFrameHost* render_frame_host,
int browser_plugin_instance_id) override;
device::GeolocationServiceContext* GetGeolocationServiceContext() override;
- device::WakeLockServiceContext* GetWakeLockServiceContext() override;
+ device::mojom::WakeLockContext* GetWakeLockServiceContext() override;
void EnterFullscreenMode(const GURL& origin) override;
void ExitFullscreenMode(bool will_cause_resize) override;
bool ShouldRouteMessageEvent(
@@ -1473,7 +1474,7 @@ class CONTENT_EXPORT WebContentsImpl
std::unique_ptr<device::GeolocationServiceContext>
geolocation_service_context_;
- std::unique_ptr<device::WakeLockServiceContext> wake_lock_service_context_;
+ std::unique_ptr<WakeLockContextHost> wake_lock_context_host_;
std::unique_ptr<ScreenOrientationProvider> screen_orientation_provider_;
« no previous file with comments | « content/browser/wake_lock/wake_lock_context_host.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698