OLD | NEW |
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_CAPTURE_DEVICES_DISPATCHER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ |
6 #define CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ | 6 #define CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 int render_view_id, | 52 int render_view_id, |
53 const content::MediaStreamDevice& device, | 53 const content::MediaStreamDevice& device, |
54 const content::MediaRequestState state) {} | 54 const content::MediaRequestState state) {} |
55 | 55 |
56 virtual ~Observer() {} | 56 virtual ~Observer() {} |
57 }; | 57 }; |
58 | 58 |
59 static MediaCaptureDevicesDispatcher* GetInstance(); | 59 static MediaCaptureDevicesDispatcher* GetInstance(); |
60 | 60 |
61 // Registers the preferences related to Media Stream default devices. | 61 // Registers the preferences related to Media Stream default devices. |
62 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 62 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
63 | 63 |
64 // Methods for observers. Called on UI thread. | 64 // Methods for observers. Called on UI thread. |
65 // Observers should add themselves on construction and remove themselves | 65 // Observers should add themselves on construction and remove themselves |
66 // on destruction. | 66 // on destruction. |
67 void AddObserver(Observer* observer); | 67 void AddObserver(Observer* observer); |
68 void RemoveObserver(Observer* observer); | 68 void RemoveObserver(Observer* observer); |
69 const content::MediaStreamDevices& GetAudioCaptureDevices(); | 69 const content::MediaStreamDevices& GetAudioCaptureDevices(); |
70 const content::MediaStreamDevices& GetVideoCaptureDevices(); | 70 const content::MediaStreamDevices& GetVideoCaptureDevices(); |
71 | 71 |
72 // Method called from WebCapturerDelegate implementations to process access | 72 // Method called from WebCapturerDelegate implementations to process access |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 scoped_refptr<MediaStreamCaptureIndicator> media_stream_capture_indicator_; | 191 scoped_refptr<MediaStreamCaptureIndicator> media_stream_capture_indicator_; |
192 | 192 |
193 scoped_refptr<AudioStreamIndicator> audio_stream_indicator_; | 193 scoped_refptr<AudioStreamIndicator> audio_stream_indicator_; |
194 | 194 |
195 content::NotificationRegistrar notifications_registrar_; | 195 content::NotificationRegistrar notifications_registrar_; |
196 | 196 |
197 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); | 197 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); |
198 }; | 198 }; |
199 | 199 |
200 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ | 200 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ |
OLD | NEW |