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

Side by Side Diff: chrome/browser/media/media_stream_devices_util.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, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_UTIL_H_
perkj_chrome 2014/08/28 15:09:40 media_stream_device_policy.h ?
Henrik Grunell 2014/08/29 07:59:10 The ShouldAllow... function has nothing to do with
6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_UTIL_H_
7
8 class GURL;
9 class Profile;
10
11 enum MediaStreamDevicePolicy {
12 POLICY_NOT_SET,
13 ALWAYS_DENY,
14 ALWAYS_ALLOW,
15 };
16
17 // Returns true if security origin is from internal objects like
18 // chrome://URLs, otherwise returns false.
19 bool ShouldAlwaysAllowOrigin(Profile* profile, const GURL& security_origin);
perkj_chrome 2014/08/28 15:09:40 ShouldAlwaysAllowOrigin is a bit confusing name I
Henrik Grunell 2014/08/29 07:59:09 Changed the name, hopefully better. (It's media st
20
21 // Get the device policy for |security_origin| and |profile|.
22 MediaStreamDevicePolicy GetDevicePolicy(Profile* profile,
23 const GURL& security_origin,
24 const char* policy_name,
25 const char* whitelist_policy_name);
26
27 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698