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

Unified Diff: content/common/browser_plugin_messages.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: Address comments from fsamuel@ Created 8 years, 2 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/common/browser_plugin_messages.h
diff --git a/content/common/browser_plugin_messages.h b/content/common/browser_plugin_messages.h
index 6bc5154b13372c0566e61d2e4b36ac9d39d54971..c7ba0af21641366e10a6d3bdc757dd13c0e08c84 100644
--- a/content/common/browser_plugin_messages.h
+++ b/content/common/browser_plugin_messages.h
@@ -122,6 +122,13 @@ IPC_MESSAGE_ROUTED2(BrowserPluginHostMsg_SetVisibility,
int /* instance_id */,
bool /* visible */)
+// Tells the guest that its request for media permission has been allowed or
+// denied.
+IPC_MESSAGE_ROUTED3(BrowserPluginHostMsg_AllowMediaAccess,
+ int /* instance_id */,
+ int /* request_id */,
+ bool /* allow */)
+
// -----------------------------------------------------------------------------
// These messages are from the guest renderer to the browser process
@@ -172,6 +179,12 @@ IPC_MESSAGE_CONTROL3(BrowserPluginMsg_DidNavigate,
IPC_MESSAGE_CONTROL1(BrowserPluginMsg_GuestCrashed,
int /* instance_id */)
+// When the guest requests for media access, the browser process forwards this
Charlie Reis 2012/10/17 06:18:45 nit: requests media access
lazyboy 2012/10/17 09:09:53 Done.
+// request to the embeddder through this message.
+IPC_MESSAGE_CONTROL2(BrowserPluginMsg_RequestMediaAccess,
+ int /* instance_id */,
+ int /* request_id */)
+
IPC_STRUCT_BEGIN(BrowserPluginMsg_UpdateRect_Params)
// The position and size of the bitmap.
IPC_STRUCT_MEMBER(gfx::Rect, bitmap_rect)

Powered by Google App Engine
This is Rietveld 408576698