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

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, 8 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 0494da6734fd49e52d14fe3b8b63337a207fb960..6f86429c55119538fdc0e9f74cb44c4c632f5723 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -53,6 +53,7 @@ class WebMediaPlayer;
class WebPresentationClient;
class WebPushClient;
class WebSecurityOrigin;
+class WebWakeLockClient;
struct WebCompositionUnderline;
struct WebContextMenuData;
struct WebCursorInfo;
@@ -100,6 +101,7 @@ class RenderWidget;
class RenderWidgetFullscreenPepper;
class ScreenOrientationDispatcher;
class UserMediaClientImpl;
+class WakeLockDispatcher;
enum class SandboxFlags;
struct CommonNavigationParams;
struct CustomContextMenuContext;
@@ -485,6 +487,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();
@@ -876,6 +879,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