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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 // Overridden from content::MediaObserver: | 115 // Overridden from content::MediaObserver: |
116 virtual void OnAudioCaptureDevicesChanged( | 116 virtual void OnAudioCaptureDevicesChanged( |
117 const content::MediaStreamDevices& devices) OVERRIDE; | 117 const content::MediaStreamDevices& devices) OVERRIDE; |
118 virtual void OnVideoCaptureDevicesChanged( | 118 virtual void OnVideoCaptureDevicesChanged( |
119 const content::MediaStreamDevices& devices) OVERRIDE; | 119 const content::MediaStreamDevices& devices) OVERRIDE; |
120 virtual void OnMediaRequestStateChanged( | 120 virtual void OnMediaRequestStateChanged( |
121 int render_process_id, | 121 int render_process_id, |
122 int render_view_id, | 122 int render_view_id, |
123 int page_request_id, | 123 int page_request_id, |
| 124 const GURL& security_origin, |
124 const content::MediaStreamDevice& device, | 125 const content::MediaStreamDevice& device, |
125 content::MediaRequestState state) OVERRIDE; | 126 content::MediaRequestState state) OVERRIDE; |
126 virtual void OnAudioStreamPlayingChanged( | 127 virtual void OnAudioStreamPlayingChanged( |
127 int render_process_id, | 128 int render_process_id, |
128 int render_view_id, | 129 int render_view_id, |
129 int stream_id, | 130 int stream_id, |
130 bool is_playing, | 131 bool is_playing, |
131 float power_dBFS, | 132 float power_dBFS, |
132 bool clipped) OVERRIDE; | 133 bool clipped) OVERRIDE; |
133 virtual void OnCreatingAudioStream(int render_process_id, | 134 virtual void OnCreatingAudioStream(int render_process_id, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 const content::MediaStreamDevices& devices, | 194 const content::MediaStreamDevices& devices, |
194 scoped_ptr<content::MediaStreamUI> ui); | 195 scoped_ptr<content::MediaStreamUI> ui); |
195 | 196 |
196 // Called by the MediaObserver() functions, executed on UI thread. | 197 // Called by the MediaObserver() functions, executed on UI thread. |
197 void UpdateAudioDevicesOnUIThread(const content::MediaStreamDevices& devices); | 198 void UpdateAudioDevicesOnUIThread(const content::MediaStreamDevices& devices); |
198 void UpdateVideoDevicesOnUIThread(const content::MediaStreamDevices& devices); | 199 void UpdateVideoDevicesOnUIThread(const content::MediaStreamDevices& devices); |
199 void UpdateMediaRequestStateOnUIThread( | 200 void UpdateMediaRequestStateOnUIThread( |
200 int render_process_id, | 201 int render_process_id, |
201 int render_view_id, | 202 int render_view_id, |
202 int page_request_id, | 203 int page_request_id, |
| 204 const GURL& security_origin, |
203 const content::MediaStreamDevice& device, | 205 const content::MediaStreamDevice& device, |
204 content::MediaRequestState state); | 206 content::MediaRequestState state); |
205 void OnCreatingAudioStreamOnUIThread(int render_process_id, | 207 void OnCreatingAudioStreamOnUIThread(int render_process_id, |
206 int render_view_id); | 208 int render_view_id); |
207 | 209 |
208 // A list of cached audio capture devices. | 210 // A list of cached audio capture devices. |
209 content::MediaStreamDevices audio_devices_; | 211 content::MediaStreamDevices audio_devices_; |
210 | 212 |
211 // A list of cached video capture devices. | 213 // A list of cached video capture devices. |
212 content::MediaStreamDevices video_devices_; | 214 content::MediaStreamDevices video_devices_; |
(...skipping 26 matching lines...) Expand all Loading... |
239 int render_view_id; | 241 int render_view_id; |
240 int page_request_id; | 242 int page_request_id; |
241 }; | 243 }; |
242 typedef std::list<DesktopCaptureSession> DesktopCaptureSessions; | 244 typedef std::list<DesktopCaptureSession> DesktopCaptureSessions; |
243 DesktopCaptureSessions desktop_capture_sessions_; | 245 DesktopCaptureSessions desktop_capture_sessions_; |
244 | 246 |
245 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); | 247 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); |
246 }; | 248 }; |
247 | 249 |
248 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ | 250 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ |
OLD | NEW |