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

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

Issue 2843353003: Move ownership of PowerSaveBlocker from WakeLockServiceContext to WakeLockServiceImpl (Closed)
Patch Set: code rebase Created 3 years, 7 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 2d788807cbf73cab3dab325e127db1e55237678e..ebd18a09057faf726baa082d4d1e9d41860173ee 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -44,6 +44,12 @@ namespace blink {
struct WebFindOptions;
}
+namespace device {
+namespace mojom {
+class WakeLockContext;
+}
+}
+
namespace net {
struct LoadStateWithParam;
}
@@ -674,6 +680,9 @@ class WebContents : public PageNavigator,
// otherwise.
virtual WebContents* GetOriginalOpener() const = 0;
+ // Returns the WakeLockContext accociated with this WebContents.
+ virtual device::mojom::WakeLockContext* GetWakeLockContext() = 0;
+
typedef base::Callback<void(
int, /* id */
int, /* HTTP status code */

Powered by Google App Engine
This is Rietveld 408576698