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

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

Issue 12079097: Introduce PrefRegistrySyncable, simplifying PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head again; base::File changes conflicted. Created 7 years, 10 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"
11 11
12 class PrefServiceSyncable; 12 class PrefRegistrySyncable;
13 class Profile; 13 class Profile;
14 class TabSpecificContentSettings; 14 class TabSpecificContentSettings;
15 15
16 class MediaStreamDevicesController { 16 class MediaStreamDevicesController {
17 public: 17 public:
18 MediaStreamDevicesController(Profile* profile, 18 MediaStreamDevicesController(Profile* profile,
19 TabSpecificContentSettings* content_settings, 19 TabSpecificContentSettings* content_settings,
20 const content::MediaStreamRequest& request, 20 const content::MediaStreamRequest& request,
21 const content::MediaResponseCallback& callback); 21 const content::MediaResponseCallback& callback);
22 22
23 virtual ~MediaStreamDevicesController(); 23 virtual ~MediaStreamDevicesController();
24 24
25 // Registers the prefs backing the audio and video policies. 25 // Registers the prefs backing the audio and video policies.
26 static void RegisterUserPrefs(PrefServiceSyncable* prefs); 26 static void RegisterUserPrefs(PrefRegistrySyncable* registry);
27 27
28 // Public method to be called before creating the MediaStreamInfoBarDelegate. 28 // Public method to be called before creating the MediaStreamInfoBarDelegate.
29 // This function will check the content settings exceptions and take the 29 // This function will check the content settings exceptions and take the
30 // corresponding action on exception which matches the request. 30 // corresponding action on exception which matches the request.
31 bool DismissInfoBarAndTakeActionOnSettings(); 31 bool DismissInfoBarAndTakeActionOnSettings();
32 32
33 // Public methods to be called by MediaStreamInfoBarDelegate; 33 // Public methods to be called by MediaStreamInfoBarDelegate;
34 bool has_audio() const { return microphone_requested_; } 34 bool has_audio() const { return microphone_requested_; }
35 bool has_video() const { return webcam_requested_; } 35 bool has_video() const { return webcam_requested_; }
36 const std::string& GetSecurityOriginSpec() const; 36 const std::string& GetSecurityOriginSpec() const;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // audio/video devices was granted or not. 91 // audio/video devices was granted or not.
92 content::MediaResponseCallback callback_; 92 content::MediaResponseCallback callback_;
93 93
94 bool microphone_requested_; 94 bool microphone_requested_;
95 bool webcam_requested_; 95 bool webcam_requested_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesController); 97 DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesController);
98 }; 98 };
99 99
100 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_ 100 #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