Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1444)

Unified Diff: chrome/browser/media/media_stream_devices_helper.h

Issue 502483002: Check policy when checking device access for enumerating devices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added dchecks Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698