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

Side by Side Diff: chrome/browser/ui/media_utils.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_MEDIA_UTILS_H_ 5 #ifndef CHROME_BROWSER_UI_MEDIA_UTILS_H_
6 #define CHROME_BROWSER_UI_MEDIA_UTILS_H_ 6 #define CHROME_BROWSER_UI_MEDIA_UTILS_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "content/public/common/media_stream_request.h" 9 #include "content/public/common/media_stream_request.h"
10 10
11 class GURL; 11 class GURL;
12 class Profile; 12 class Profile;
13 13
14 namespace content { 14 namespace content {
15 class WebContents; 15 class WebContents;
16 } 16 }
17 17
18 void RequestMediaAccessPermission( 18 void RequestMediaAccessPermission(
19 content::WebContents* web_contents, 19 content::WebContents* web_contents,
20 Profile* profile, 20 Profile* profile,
21 const content::MediaStreamRequest& request, 21 const content::MediaStreamRequest& request,
22 const content::MediaResponseCallback& callback); 22 const content::MediaResponseCallback& callback);
23 23
24 bool CheckMediaAccessPermission(content::WebContents* web_contents, 24 bool CheckMediaAccessPermission(content::WebContents* web_contents,
25 const GURL& security_origin, 25 const GURL& security_origin,
26 content::MediaStreamType type); 26 content::MediaStreamType type);
27 27
28 std::string GetDefaultMediaDeviceId(content::WebContents* web_contents,
29 content::MediaStreamType type);
30
28 #endif // CHROME_BROWSER_UI_MEDIA_UTILS_H_ 31 #endif // CHROME_BROWSER_UI_MEDIA_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698