| 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 162c65431776e9e1800a3eacd870aa3f2f5b1208..a6930ad52979b6eeb918baab6b3c280bc7f5d606 100644
|
| --- a/chrome/browser/media/media_capture_devices_dispatcher.h
|
| +++ b/chrome/browser/media/media_capture_devices_dispatcher.h
|
| @@ -90,6 +90,20 @@ 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.
|
| + bool CheckMediaAccessPermission(content::WebContents* web_contents,
|
| + const GURL& security_origin,
|
| + content::MediaStreamType type);
|
| +
|
| + // Same as above but for an |extension|, which may not be NULL.
|
| +#if defined(ENABLE_EXTENSIONS)
|
| + bool CheckMediaAccessPermission(content::WebContents* web_contents,
|
| + const GURL& security_origin,
|
| + content::MediaStreamType type,
|
| + const extensions::Extension* extension);
|
| +#endif
|
| +
|
| // 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
|
|
|