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

Side by Side Diff: chrome/browser/media/media_stream_devices_helper.h

Issue 502483002: Check policy when checking device access for enumerating devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added dchecks Created 6 years, 4 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_HELPER_H_
6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_HELPER_H_
7
8 #include "url/gurl.h"
9
10 class Profile;
11
12 enum MediaStreamDevicePolicy {
tommi (sloooow) - chröme 2014/08/22 19:42:56 should the contents of this file be in a namespace
13 POLICY_NOT_SET,
14 ALWAYS_DENY,
15 ALWAYS_ALLOW,
16 };
17
18 // Get the device policy for |security_origin| and |profile|.
19 MediaStreamDevicePolicy GetDevicePolicy(Profile* profile,
20 GURL security_origin,
21 const char* policy_name,
22 const char* whitelist_policy_name);
23
24 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698