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

Unified Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 11093080: <webview>: First stab at implementing media permission request for guests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add todo for auto deny when no listeners attached. Created 8 years 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/renderer/browser_plugin/browser_plugin.h
diff --git a/content/renderer/browser_plugin/browser_plugin.h b/content/renderer/browser_plugin/browser_plugin.h
index fad7f648f220f6a74c8e097c831fd02ecae50f88..4f365c7554904b211cbef724341be8b872ef6371 100644
--- a/content/renderer/browser_plugin/browser_plugin.h
+++ b/content/renderer/browser_plugin/browser_plugin.h
@@ -120,6 +120,12 @@ class CONTENT_EXPORT BrowserPlugin :
// touch events.
void SetAcceptTouchEvents(bool accept);
+ // Requests media access permission from the embedder.
+ void RequestMediaAccess(int request_id);
+ // Informs the BrowserPlugin that the guest's request for media access has
+ // been allowed or denied by the embedder.
+ void RespondMediaAccess(int request_id, bool allow);
+
// Tells the BrowserPlugin to tell the guest to navigate to the previous
// navigation entry in the navigation history.
void Back();

Powered by Google App Engine
This is Rietveld 408576698