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