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

Side by Side Diff: chrome/browser/media/media_stream_devices_controller.h

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_
6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_ 6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/public/browser/web_contents_delegate.h" 10 #include "content/public/browser/web_contents_delegate.h"
(...skipping 15 matching lines...) Expand all
26 const content::MediaStreamRequest& request, 26 const content::MediaStreamRequest& request,
27 const content::MediaResponseCallback& callback); 27 const content::MediaResponseCallback& callback);
28 28
29 virtual ~MediaStreamDevicesController(); 29 virtual ~MediaStreamDevicesController();
30 30
31 // TODO(tommi): Clean up all the policy code and integrate with 31 // TODO(tommi): Clean up all the policy code and integrate with
32 // HostContentSettingsMap instead. This will make creating the UI simpler 32 // HostContentSettingsMap instead. This will make creating the UI simpler
33 // and the code cleaner. crbug.com/244389. 33 // and the code cleaner. crbug.com/244389.
34 34
35 // Registers the prefs backing the audio and video policies. 35 // Registers the prefs backing the audio and video policies.
36 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); 36 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
37 37
38 // Public method to be called before creating the MediaStreamInfoBarDelegate. 38 // Public method to be called before creating the MediaStreamInfoBarDelegate.
39 // This function will check the content settings exceptions and take the 39 // This function will check the content settings exceptions and take the
40 // corresponding action on exception which matches the request. 40 // corresponding action on exception which matches the request.
41 bool DismissInfoBarAndTakeActionOnSettings(); 41 bool DismissInfoBarAndTakeActionOnSettings();
42 42
43 // Public methods to be called by MediaStreamInfoBarDelegate; 43 // Public methods to be called by MediaStreamInfoBarDelegate;
44 bool has_audio() const { return microphone_requested_; } 44 bool has_audio() const { return microphone_requested_; }
45 bool has_video() const { return webcam_requested_; } 45 bool has_video() const { return webcam_requested_; }
46 const std::string& GetSecurityOriginSpec() const; 46 const std::string& GetSecurityOriginSpec() const;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // audio/video devices was granted or not. 109 // audio/video devices was granted or not.
110 content::MediaResponseCallback callback_; 110 content::MediaResponseCallback callback_;
111 111
112 bool microphone_requested_; 112 bool microphone_requested_;
113 bool webcam_requested_; 113 bool webcam_requested_;
114 114
115 DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesController); 115 DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesController);
116 }; 116 };
117 117
118 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_ 118 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/media_capture_devices_dispatcher.cc ('k') | chrome/browser/media/media_stream_devices_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698