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

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: Sync and reup patch for review. 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 6abd3e2d7f054ee81f80684f232923583ffcb555..50da3d2041534d972ea8b4fb48f4ef42fcfe38d8 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 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