Index: content/public/browser/web_contents.h |
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h |
index f968ca22bcc00ec6ed8fbea79ba067f88e1963f7..fe97f7693afc86b1c562e1940fb697bd37b6dfd3 100644 |
--- a/content/public/browser/web_contents.h |
+++ b/content/public/browser/web_contents.h |
@@ -43,6 +43,12 @@ namespace blink { |
struct WebFindOptions; |
} |
+namespace device { |
+namespace mojom { |
+class WakeLockContext; |
+} |
+} |
+ |
namespace net { |
struct LoadStateWithParam; |
} |
@@ -654,6 +660,9 @@ class WebContents : public PageNavigator, |
// otherwise. |
virtual WebContents* GetOriginalOpener() const = 0; |
+ // Returns the WakeLockContext accociated with this WebContents. |
+ virtual device::mojom::WakeLockContext* GetWakeLockContext() = 0; |
blundell
2017/05/02 11:27:43
nit: Nothing in this CL is using this method, righ
ke.he
2017/05/04 11:54:13
It is used by WebContentsImpl::GetRendererWakeLock
|
+ |
typedef base::Callback<void( |
int, /* id */ |
int, /* HTTP status code */ |