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

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

Issue 1107333002: Wake Lock API implementation (Chromium part) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 95eb49a0d0f4e24d12ad23a0eecd02a24dd5f28c..ca14a91f6b3c7997dcc31e37db3b4113c7d536bd 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -65,6 +65,7 @@ class SavePackage;
class ScreenOrientationDispatcherHost;
class SiteInstance;
class TestWebContents;
+class WakeLockServiceContext;
class WebContentsAudioMuter;
class WebContentsDelegate;
class WebContentsImpl;
@@ -419,6 +420,7 @@ class CONTENT_EXPORT WebContentsImpl
RenderFrameHost* render_frame_host,
int browser_plugin_instance_id) override;
GeolocationServiceContext* GetGeolocationServiceContext() override;
+ WakeLockServiceContext* GetWakeLockServiceContext() override;
void EnterFullscreenMode(const GURL& origin) override;
void ExitFullscreenMode() override;
bool ShouldRouteMessageEvent(
@@ -1270,6 +1272,8 @@ class CONTENT_EXPORT WebContentsImpl
scoped_ptr<GeolocationServiceContext> geolocation_service_context_;
+ scoped_ptr<WakeLockServiceContext> wake_lock_service_context_;
+
scoped_ptr<ScreenOrientationDispatcherHost>
screen_orientation_dispatcher_host_;

Powered by Google App Engine
This is Rietveld 408576698