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

Unified Diff: chrome/browser/media/media_capture_devices_dispatcher.h

Issue 483523006: Check all settings when checking mic and camera access (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 4 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: 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 6c716616c3f4c58c4791309a44443998ef683718..2bb0a42bc2e76db8791f0c78d38d7ecc5f47a541 100644
--- a/chrome/browser/media/media_capture_devices_dispatcher.h
+++ b/chrome/browser/media/media_capture_devices_dispatcher.h
@@ -84,6 +84,12 @@ class MediaCaptureDevicesDispatcher : public content::MediaObserver,
const content::MediaResponseCallback& callback,
const extensions::Extension* extension);
+ // Checks if we have media access permission. Note that this only checks the
perkj_chrome 2014/08/28 15:09:40 nit: extra space
Henrik Grunell 2014/08/29 07:59:09 Done.
+ // settings and does not query the user.
+ bool CheckMediaAccessPermission(content::BrowserContext* browser_context,
+ const GURL& security_origin,
+ content::MediaStreamType type);
+
// 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

Powered by Google App Engine
This is Rietveld 408576698