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. |