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

Unified Diff: content/public/browser/web_contents_delegate.h

Issue 2629383002: Add functionality to get default media device IDs from user preferences. (Closed)
Patch Set: Created 3 years, 11 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: content/public/browser/web_contents_delegate.h
diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h
index 9d3db1efb792cc6c6efcb6a5be7fc41cec5e4e65..b7a30c52f2562592ad1b53e74acfde24adf7de51 100644
--- a/content/public/browser/web_contents_delegate.h
+++ b/content/public/browser/web_contents_delegate.h
@@ -479,6 +479,12 @@ class CONTENT_EXPORT WebContentsDelegate {
const GURL& security_origin,
MediaStreamType type);
+ // Returns the ID of the default device for the given media device |type|.
+ // If the returned value is an empty string, it means that there is no
+ // default device for the given |type|.
+ virtual std::string GetDefaultMediaDeviceId(WebContents* web_contents,
+ MediaStreamType type);
+
#if defined(OS_ANDROID)
// Asks permission to decode media stream. After permission is determined,
// |callback| will be called with the result.

Powered by Google App Engine
This is Rietveld 408576698