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

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: Reup patch, with new style event handling + fix tests. Created 8 years, 1 month 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 da612fa2b5e589633c56c00135ea5b13ba7f1c52..7317407d5ace553594cffe4b2b0abb880531842b 100644
--- a/content/renderer/browser_plugin/browser_plugin.h
+++ b/content/renderer/browser_plugin/browser_plugin.h
@@ -115,6 +115,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.
+ void AllowMediaAccess(int request_id, bool allow);
sadrul 2012/11/16 03:59:53 Perhaps call this RespondMediaAccess or something
lazyboy 2012/11/16 06:27:09 Done. (the msg is named AllowFoo still, we shd pro
+
// 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