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. |