Chromium Code Reviews| Index: content/browser/browser_plugin/browser_plugin_embedder.cc |
| diff --git a/content/browser/browser_plugin/browser_plugin_embedder.cc b/content/browser/browser_plugin/browser_plugin_embedder.cc |
| index 8d449f2278fa13c82b4ea04fd3f00d8af89083a5..c26e7a98b5cf4efa03b737cc6182fbfcf72b7723 100644 |
| --- a/content/browser/browser_plugin/browser_plugin_embedder.cc |
| +++ b/content/browser/browser_plugin/browser_plugin_embedder.cc |
| @@ -315,6 +315,14 @@ void BrowserPluginEmbedder::SetAutoSize( |
| guest->SetSize(auto_size_params, resize_guest_params); |
| } |
| +void BrowserPluginEmbedder::AllowMediaAccess(int instance_id, |
| + int request_id, |
| + bool should_allow) { |
| + BrowserPluginGuest* guest = GetGuestByInstanceID(instance_id); |
|
Charlie Reis
2012/12/07 19:16:25
Should we have a security check here, ensuring tha
lazyboy
2012/12/07 22:50:44
(see next comment)
|
| + if (guest) |
| + guest->AllowMediaAccess(web_contents(), request_id, should_allow); |
| +} |
| + |
| void BrowserPluginEmbedder::Go(int instance_id, int relative_index) { |
| BrowserPluginGuest* guest = GetGuestByInstanceID(instance_id); |
| if (guest) |