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

Unified Diff: content/renderer/render_view_impl.h

Issue 486383003: WakeLock API: IPC at renderer side. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index bad09fad1cf80fc64cfafc418477a734e8054bdf..2ebc10c3313553534b140f1d98e02c0cdd30b9ce 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -138,6 +138,7 @@ class RenderViewTest;
class RendererDateTimePicker;
class RendererWebColorChooserImpl;
class SpeechRecognitionDispatcher;
+class WakeLockDispatcher;
class WebPluginDelegateProxy;
struct DropData;
struct FaviconURL;
@@ -439,6 +440,8 @@ class CONTENT_EXPORT RenderViewImpl
virtual blink::WebPushClient* webPushClient();
virtual void draggableRegionsChanged();
+ virtual blink::WebWakeLockClient* webWakeLockClient();
+
#if defined(OS_ANDROID)
virtual void scheduleContentIntent(const blink::WebURL& intent);
virtual void cancelScheduledContentIntents();
@@ -1040,6 +1043,9 @@ class CONTENT_EXPORT RenderViewImpl
scoped_ptr<HistoryController> history_controller_;
+ // The wake lock dispatcher attached to this view, lazily initialized.
+ WakeLockDispatcher* wakelock_dispatcher_;
+
#if defined(OS_ANDROID)
// Android Specific ---------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698