| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 virtual void OnVideoCaptureDevicesChanged() OVERRIDE; | 122 virtual void OnVideoCaptureDevicesChanged() OVERRIDE; |
| 123 virtual void OnMediaRequestStateChanged( | 123 virtual void OnMediaRequestStateChanged( |
| 124 int render_process_id, | 124 int render_process_id, |
| 125 int render_frame_id, | 125 int render_frame_id, |
| 126 int page_request_id, | 126 int page_request_id, |
| 127 const GURL& security_origin, | 127 const GURL& security_origin, |
| 128 content::MediaStreamType stream_type, | 128 content::MediaStreamType stream_type, |
| 129 content::MediaRequestState state) OVERRIDE; | 129 content::MediaRequestState state) OVERRIDE; |
| 130 virtual void OnCreatingAudioStream(int render_process_id, | 130 virtual void OnCreatingAudioStream(int render_process_id, |
| 131 int render_frame_id) OVERRIDE; | 131 int render_frame_id) OVERRIDE; |
| 132 virtual void OnAudioStreamPlaying( |
| 133 int render_process_id, |
| 134 int render_frame_id, |
| 135 int stream_id, |
| 136 const ReadPowerAndClipCallback& power_read_callback) OVERRIDE; |
| 137 virtual void OnAudioStreamStopped( |
| 138 int render_process_id, |
| 139 int render_frame_id, |
| 140 int stream_id) OVERRIDE; |
| 132 | 141 |
| 133 scoped_refptr<MediaStreamCaptureIndicator> GetMediaStreamCaptureIndicator(); | 142 scoped_refptr<MediaStreamCaptureIndicator> GetMediaStreamCaptureIndicator(); |
| 134 | 143 |
| 135 DesktopStreamsRegistry* GetDesktopStreamsRegistry(); | 144 DesktopStreamsRegistry* GetDesktopStreamsRegistry(); |
| 136 | 145 |
| 137 bool IsDesktopCaptureInProgress(); | 146 bool IsDesktopCaptureInProgress(); |
| 138 | 147 |
| 139 // Only for testing. | 148 // Only for testing. |
| 140 void SetTestAudioCaptureDevices(const content::MediaStreamDevices& devices); | 149 void SetTestAudioCaptureDevices(const content::MediaStreamDevices& devices); |
| 141 void SetTestVideoCaptureDevices(const content::MediaStreamDevices& devices); | 150 void SetTestVideoCaptureDevices(const content::MediaStreamDevices& devices); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 int render_frame_id; | 245 int render_frame_id; |
| 237 int page_request_id; | 246 int page_request_id; |
| 238 }; | 247 }; |
| 239 typedef std::list<DesktopCaptureSession> DesktopCaptureSessions; | 248 typedef std::list<DesktopCaptureSession> DesktopCaptureSessions; |
| 240 DesktopCaptureSessions desktop_capture_sessions_; | 249 DesktopCaptureSessions desktop_capture_sessions_; |
| 241 | 250 |
| 242 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); | 251 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); |
| 243 }; | 252 }; |
| 244 | 253 |
| 245 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ | 254 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ |
| OLD | NEW |