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_WEBRTC_MEDIA_STREAM_DEVICE_PERMISSIONS_H_ 6 #define CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_DEVICE_PERMISSIONS_H_ 7 8 #include "components/content_settings/core/common/content_settings.h" 9 #include "components/content_settings/core/common/content_settings_types.h" 10 11 class GURL; 12 class Profile; 13 14 enum MediaStreamDevicePolicy { 15 POLICY_NOT_SET, 16 ALWAYS_DENY, 17 ALWAYS_ALLOW, 18 }; 19 20 // Get the device policy for |security_origin| and |profile|. 21 MediaStreamDevicePolicy GetDevicePolicy(const Profile* profile, 22 const GURL& security_origin, 23 const char* policy_name, 24 const char* allowed_urls_pref_name); 25 26 #endif // CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_DEVICE_PERMISSIONS_H_ 27