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

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: addressing comments 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..9c344f21109f32173177d442f2554ae220b47bab 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -453,6 +453,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