Chromium Code Reviews| Index: chrome/browser/media/media_stream_devices_util.h |
| diff --git a/chrome/browser/media/media_stream_devices_util.h b/chrome/browser/media/media_stream_devices_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c29ae86b066ba97f655333d6566e51f3d54461a2 |
| --- /dev/null |
| +++ b/chrome/browser/media/media_stream_devices_util.h |
| @@ -0,0 +1,27 @@ |
| +// 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_MEDIA_STREAM_DEVICES_UTIL_H_ |
|
perkj_chrome
2014/08/28 15:09:40
media_stream_device_policy.h ?
Henrik Grunell
2014/08/29 07:59:10
The ShouldAllow... function has nothing to do with
|
| +#define CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_UTIL_H_ |
| + |
| +class GURL; |
| +class Profile; |
| + |
| +enum MediaStreamDevicePolicy { |
| + POLICY_NOT_SET, |
| + ALWAYS_DENY, |
| + ALWAYS_ALLOW, |
| +}; |
| + |
| +// Returns true if security origin is from internal objects like |
| +// chrome://URLs, otherwise returns false. |
| +bool ShouldAlwaysAllowOrigin(Profile* profile, const GURL& security_origin); |
|
perkj_chrome
2014/08/28 15:09:40
ShouldAlwaysAllowOrigin is a bit confusing name I
Henrik Grunell
2014/08/29 07:59:09
Changed the name, hopefully better. (It's media st
|
| + |
| +// Get the device policy for |security_origin| and |profile|. |
| +MediaStreamDevicePolicy GetDevicePolicy(Profile* profile, |
| + const GURL& security_origin, |
| + const char* policy_name, |
| + const char* whitelist_policy_name); |
| + |
| +#endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_UTIL_H_ |