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

Unified Diff: content/public/browser/web_contents.h

Issue 2843353003: Move ownership of PowerSaveBlocker from WakeLockServiceContext to WakeLockServiceImpl (Closed)
Patch Set: error fix, non-frame client. Created 3 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/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 */

Powered by Google App Engine
This is Rietveld 408576698