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

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

Issue 1372203002: Throttle media decoding after excessive Android media server crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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_delegate.h
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index 76dfd36b64aa9a17957d09d0ab36d27fdb65899d..de7e1e3d7ce5ff5058144f8b74e6cba741015cef 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -37,6 +37,9 @@ class BrowserContext;
class ColorChooser;
class DownloadItem;
class JavaScriptDialogManager;
+#if defined(OS_ANDROID)
+class MediaThrottler;
Ted C 2015/09/28 22:42:30 why is this needed?
qinmin 2015/09/29 23:16:23 removed
+#endif
class PageState;
class RenderViewHost;
class SessionStorageNamespace;
@@ -453,6 +456,14 @@ class CONTENT_EXPORT WebContentsDelegate {
const GURL& security_origin,
MediaStreamType type);
+#if defined(OS_ANDROID)
+ // Asks permission to decode media stream. After permission is determined,
+ // |callback| will be called with the result.
+ virtual void RequestMediaDecodePermission(
+ WebContents* web_contents,
+ const base::Callback<void(bool)>& callback);
+#endif
+
// Requests permission to access the PPAPI broker. The delegate should return
// true and call the passed in |callback| with the result, or return false
// to indicate that it does not support asking for permission.

Powered by Google App Engine
This is Rietveld 408576698