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

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, 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/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 c4f908caa0ab8f497182e675f78b8041149cc7db..56c189b01f2a948ff9a0717528a715b780d51644 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -66,6 +66,7 @@ class SavePackage;
class ScreenOrientationDispatcherHost;
class SiteInstance;
class TestWebContents;
+class WakeLockDispatcherHost;
class WebContentsAudioMuter;
class WebContentsDelegate;
class WebContentsImpl;
@@ -184,6 +185,10 @@ class CONTENT_EXPORT WebContentsImpl
return screen_orientation_dispatcher_host_.get();
}
+ WakeLockDispatcherHost* wake_lock_dispatcher_host() {
+ return wake_lock_dispatcher_host_.get();
mlamouri (slow - plz ping) 2015/05/05 14:08:34 You don't seem to use that except for tests. Maybe
+ }
+
bool should_normally_be_visible() { return should_normally_be_visible_; }
// Indicate if the window has been occluded, and pass this to the views, only
@@ -1248,6 +1253,8 @@ class CONTENT_EXPORT WebContentsImpl
scoped_ptr<ScreenOrientationDispatcherHost>
screen_orientation_dispatcher_host_;
+ scoped_ptr<WakeLockDispatcherHost> wake_lock_dispatcher_host_;
+
scoped_ptr<ManifestManagerHost> manifest_manager_host_;
// The accessibility mode for all frames. This is queried when each frame

Powered by Google App Engine
This is Rietveld 408576698