Index: chrome/browser/media/media_stream_devices_helper.h |
diff --git a/chrome/browser/media/media_stream_devices_helper.h b/chrome/browser/media/media_stream_devices_helper.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..327543d95a6c1a3909e527a933f500dcf5d0da2c |
--- /dev/null |
+++ b/chrome/browser/media/media_stream_devices_helper.h |
@@ -0,0 +1,24 @@ |
+// 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_HELPER_H_ |
+#define CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_HELPER_H_ |
+ |
+#include "url/gurl.h" |
+ |
+class Profile; |
+ |
+enum MediaStreamDevicePolicy { |
tommi (sloooow) - chröme
2014/08/22 19:42:56
should the contents of this file be in a namespace
|
+ POLICY_NOT_SET, |
+ ALWAYS_DENY, |
+ ALWAYS_ALLOW, |
+}; |
+ |
+// Get the device policy for |security_origin| and |profile|. |
+MediaStreamDevicePolicy GetDevicePolicy(Profile* profile, |
+ GURL security_origin, |
+ const char* policy_name, |
+ const char* whitelist_policy_name); |
+ |
+#endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_HELPER_H_ |