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

Unified Diff: content/renderer/render_frame_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, 5 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/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 321248faff625a6d5b441a9085d3bb8ae8520e85..25067368684423974237adfa9b7e8d20f18c7079 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -60,6 +60,7 @@ class WebMediaPlayer;
class WebPresentationClient;
class WebPushClient;
class WebSecurityOrigin;
+class WebWakeLockClient;
struct WebCompositionUnderline;
struct WebContextMenuData;
struct WebCursorInfo;
@@ -111,6 +112,7 @@ class RenderWidget;
class RenderWidgetFullscreenPepper;
class ScreenOrientationDispatcher;
class UserMediaClientImpl;
+class WakeLockDispatcher;
struct CommonNavigationParams;
struct CustomContextMenuContext;
struct FrameReplicationState;
@@ -502,6 +504,7 @@ class CONTENT_EXPORT RenderFrameImpl
unsigned long long requested_size,
blink::WebStorageQuotaCallbacks callbacks);
virtual void willOpenWebSocket(blink::WebSocketHandle* handle);
+ virtual blink::WebWakeLockClient* wakeLockClient();
virtual blink::WebGeolocationClient* geolocationClient();
virtual blink::WebPushClient* pushClient();
virtual blink::WebPresentationClient* presentationClient();
@@ -970,6 +973,8 @@ class CONTENT_EXPORT RenderFrameImpl
// local roots.
DevToolsAgent* devtools_agent_;
+ WakeLockDispatcher* wakelock_dispatcher_;
+
// The geolocation dispatcher attached to this frame, lazily initialized.
GeolocationDispatcher* geolocation_dispatcher_;

Powered by Google App Engine
This is Rietveld 408576698