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

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

Issue 15738004: Add a policy list for access to capture devices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reference bug for code cleanup Created 7 years, 7 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
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/browser/media/media_stream_devices_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/media_stream_devices_controller.h
diff --git a/chrome/browser/media/media_stream_devices_controller.h b/chrome/browser/media/media_stream_devices_controller.h
index 2468df767c4cade1de9b7e5cb36893dcddc1f58c..bfcf8557b22d830ae9b50836fd20391cd97a1cd4 100644
--- a/chrome/browser/media/media_stream_devices_controller.h
+++ b/chrome/browser/media/media_stream_devices_controller.h
@@ -28,6 +28,10 @@ class MediaStreamDevicesController {
virtual ~MediaStreamDevicesController();
+ // TODO(tommi): Clean up all the policy code and integrate with
+ // HostContentSettingsMap instead. This will make creating the UI simpler
+ // and the code cleaner. crbug.com/244389.
+
// Registers the prefs backing the audio and video policies.
static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry);
@@ -52,7 +56,8 @@ class MediaStreamDevicesController {
// Called by GetAudioDevicePolicy and GetVideoDevicePolicy to check
// the currently set capture device policy.
- DevicePolicy GetDevicePolicy(const char* policy_name) const;
+ DevicePolicy GetDevicePolicy(const char* policy_name,
+ const char* whitelist_policy_name) const;
// Returns true if the origin of the request has been granted the media
// access before, otherwise returns false.
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/browser/media/media_stream_devices_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698