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

Unified Diff: content/browser/frame_host/render_frame_host_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/browser/frame_host/render_frame_host_delegate.h
diff --git a/content/browser/frame_host/render_frame_host_delegate.h b/content/browser/frame_host/render_frame_host_delegate.h
index 4f3178036cda45d6dee1f0b9e6f4d0bbd2672ad9..1ab65e1c393373e1f7df2539c8654d0deb108f06 100644
--- a/content/browser/frame_host/render_frame_host_delegate.h
+++ b/content/browser/frame_host/render_frame_host_delegate.h
@@ -158,6 +158,11 @@ class CONTENT_EXPORT RenderFrameHostDelegate {
virtual bool CheckMediaAccessPermission(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(MediaStreamType type);
clamy 2017/01/16 12:48:09 It seems to me that there are no instances of this
Guido Urdaneta 2017/01/18 15:03:59 I added a test that exercises most of the code, al
clamy 2017/01/18 15:15:49 I understand, but why do you need to add this part
+
// Get the accessibility mode for the WebContents that owns this frame.
virtual AccessibilityMode GetAccessibilityMode() const;

Powered by Google App Engine
This is Rietveld 408576698