Index: content/public/browser/browser_plugin_guest_delegate.h |
diff --git a/content/public/browser/browser_plugin_guest_delegate.h b/content/public/browser/browser_plugin_guest_delegate.h |
index 01deb0020b19cb480489971e655ac55ce9de9098..b9de596d7f1aead3a15a3f14a2fca22b29cee970 100644 |
--- a/content/public/browser/browser_plugin_guest_delegate.h |
+++ b/content/public/browser/browser_plugin_guest_delegate.h |
@@ -11,6 +11,7 @@ |
#include "base/values.h" |
#include "content/common/content_export.h" |
#include "content/public/common/browser_plugin_permission_type.h" |
+#include "content/public/common/media_stream_request.h" |
#include "ui/gfx/geometry/rect.h" |
#include "ui/gfx/size.h" |
#include "url/gurl.h" |
@@ -99,6 +100,16 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate { |
// Notifies that the content size of the guest has changed in autosize mode. |
virtual void SizeChanged(const gfx::Size& old_size, |
const gfx::Size& new_size) {} |
+ |
+ // Asks permission to use the camera and/or microphone. If permission is |
+ // granted, a call should be made to |callback| with the devices. If the |
+ // request is denied, a call should be made to |callback| with an empty list |
+ // of devices. |request| has the details of the request (e.g. which of audio |
+ // and/or video devices are requested, and lists of available devices). |
+ virtual void RequestMediaAccessPermission( |
+ const MediaStreamRequest& request, |
+ const MediaResponseCallback& callback); |
+ |
}; |
} // namespace content |