| Index: chrome/browser/media/media_capture_devices_dispatcher.h
|
| diff --git a/chrome/browser/media/media_capture_devices_dispatcher.h b/chrome/browser/media/media_capture_devices_dispatcher.h
|
| index dcef64445349c27180915ada6a3b9eb701d6c0ce..35454de849704872cad7969522a8a8da62d6dbbf 100644
|
| --- a/chrome/browser/media/media_capture_devices_dispatcher.h
|
| +++ b/chrome/browser/media/media_capture_devices_dispatcher.h
|
| @@ -90,6 +90,14 @@ class MediaCaptureDevicesDispatcher : public content::MediaObserver,
|
| const GURL& security_origin,
|
| content::MediaStreamType type);
|
|
|
| + // Method called from WebCapturerDelegate implementations to check media
|
| + // access permission. Note that this does not query the user. |extension| is
|
| + // set to NULL if request was made from a drive-by page.
|
| + bool CheckMediaAccessPermission(content::WebContents* web_contents,
|
| + const GURL& security_origin,
|
| + content::MediaStreamType type,
|
| + const extensions::Extension* extension);
|
| +
|
| // Helper to get the default devices which can be used by the media request.
|
| // Uses the first available devices if the default devices are not available.
|
| // If the return list is empty, it means there is no available device on the
|
|
|