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 <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 DesktopStreamsRegistry* GetDesktopStreamsRegistry(); | 142 DesktopStreamsRegistry* GetDesktopStreamsRegistry(); |
143 | 143 |
144 bool IsDesktopCaptureInProgress(); | 144 bool IsDesktopCaptureInProgress(); |
145 | 145 |
146 // Only for testing. | 146 // Only for testing. |
147 void SetTestAudioCaptureDevices(const content::MediaStreamDevices& devices); | 147 void SetTestAudioCaptureDevices(const content::MediaStreamDevices& devices); |
148 void SetTestVideoCaptureDevices(const content::MediaStreamDevices& devices); | 148 void SetTestVideoCaptureDevices(const content::MediaStreamDevices& devices); |
149 | 149 |
150 private: | 150 private: |
151 friend struct DefaultSingletonTraits<MediaCaptureDevicesDispatcher>; | 151 friend struct base::DefaultSingletonTraits<MediaCaptureDevicesDispatcher>; |
152 | 152 |
153 MediaCaptureDevicesDispatcher(); | 153 MediaCaptureDevicesDispatcher(); |
154 ~MediaCaptureDevicesDispatcher() override; | 154 ~MediaCaptureDevicesDispatcher() override; |
155 | 155 |
156 // Called by the MediaObserver() functions, executed on UI thread. | 156 // Called by the MediaObserver() functions, executed on UI thread. |
157 void NotifyAudioDevicesChangedOnUIThread(); | 157 void NotifyAudioDevicesChangedOnUIThread(); |
158 void NotifyVideoDevicesChangedOnUIThread(); | 158 void NotifyVideoDevicesChangedOnUIThread(); |
159 void UpdateMediaRequestStateOnUIThread( | 159 void UpdateMediaRequestStateOnUIThread( |
160 int render_process_id, | 160 int render_process_id, |
161 int render_frame_id, | 161 int render_frame_id, |
(...skipping 20 matching lines...) Expand all Loading... |
182 | 182 |
183 scoped_ptr<DesktopStreamsRegistry> desktop_streams_registry_; | 183 scoped_ptr<DesktopStreamsRegistry> desktop_streams_registry_; |
184 | 184 |
185 // Handlers for processing media access requests. | 185 // Handlers for processing media access requests. |
186 ScopedVector<MediaAccessHandler> media_access_handlers_; | 186 ScopedVector<MediaAccessHandler> media_access_handlers_; |
187 | 187 |
188 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); | 188 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); |
189 }; | 189 }; |
190 | 190 |
191 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ | 191 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ |
OLD | NEW |