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.h"
9 #include "components/content_settings/core/common/content_settings_types.h"
10 #include "content/public/common/media_stream_request.h"
15 enum MediaStreamDevicePolicy
{
21 // Returns true if the given media content setting should be persisted.
22 bool ShouldPersistContentSetting(ContentSetting setting
,
24 bool is_pepper_request
);
26 // Get the device policy for |security_origin| and |profile|.
27 MediaStreamDevicePolicy
GetDevicePolicy(const Profile
* profile
,
28 const GURL
& security_origin
,
29 const char* policy_name
,
30 const char* whitelist_policy_name
);
32 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICE_PERMISSIONS_H_