diff options
Diffstat (limited to 'chromium/chrome/browser/media/webrtc/media_stream_device_permissions.h')
-rw-r--r-- | chromium/chrome/browser/media/webrtc/media_stream_device_permissions.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/chromium/chrome/browser/media/webrtc/media_stream_device_permissions.h b/chromium/chrome/browser/media/webrtc/media_stream_device_permissions.h new file mode 100644 index 00000000000..5bfbb9e26a5 --- /dev/null +++ b/chromium/chrome/browser/media/webrtc/media_stream_device_permissions.h @@ -0,0 +1,26 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_DEVICE_PERMISSIONS_H_ +#define CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_DEVICE_PERMISSIONS_H_ + +#include "components/content_settings/core/common/content_settings.h" +#include "components/content_settings/core/common/content_settings_types.h" + +class GURL; +class Profile; + +enum MediaStreamDevicePolicy { + POLICY_NOT_SET, + ALWAYS_DENY, + ALWAYS_ALLOW, +}; + +// Get the device policy for |security_origin| and |profile|. +MediaStreamDevicePolicy GetDevicePolicy(const Profile* profile, + const GURL& security_origin, + const char* policy_name, + const char* whitelist_policy_name); + +#endif // CHROME_BROWSER_MEDIA_WEBRTC_MEDIA_STREAM_DEVICE_PERMISSIONS_H_ |