Check USB device path access when prompting users to select a device.
[chromium-blink-merge.git] / chrome / browser / media / media_stream_device_permissions.h
blobf92609c370a029d38b6ab2c61d141553c0bf579a
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.
5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICE_PERMISSIONS_H_
6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICE_PERMISSIONS_H_
8 #include "components/content_settings/core/common/content_settings_types.h"
10 class GURL;
11 class Profile;
13 enum MediaStreamDevicePolicy {
14 POLICY_NOT_SET,
15 ALWAYS_DENY,
16 ALWAYS_ALLOW,
19 // Returns true if security origin is from internal objects like
20 // chrome://URLs, otherwise returns false.
21 bool CheckAllowAllMediaStreamContentForOrigin(Profile* profile,
22 const GURL& security_origin,
23 ContentSettingsType type);
25 // Get the device policy for |security_origin| and |profile|.
26 MediaStreamDevicePolicy GetDevicePolicy(Profile* profile,
27 const GURL& security_origin,
28 const char* policy_name,
29 const char* whitelist_policy_name);
31 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICE_PERMISSIONS_H_