| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 const content::MediaStreamRequest& request, | 187 const content::MediaStreamRequest& request, |
| 188 const content::MediaResponseCallback& callback, | 188 const content::MediaResponseCallback& callback, |
| 189 const extensions::Extension* extension); | 189 const extensions::Extension* extension); |
| 190 void ProcessRegularMediaAccessRequest( | 190 void ProcessRegularMediaAccessRequest( |
| 191 content::WebContents* web_contents, | 191 content::WebContents* web_contents, |
| 192 const content::MediaStreamRequest& request, | 192 const content::MediaStreamRequest& request, |
| 193 const content::MediaResponseCallback& callback); | 193 const content::MediaResponseCallback& callback); |
| 194 void ProcessQueuedAccessRequest(content::WebContents* web_contents); | 194 void ProcessQueuedAccessRequest(content::WebContents* web_contents); |
| 195 void OnAccessRequestResponse(content::WebContents* web_contents, | 195 void OnAccessRequestResponse(content::WebContents* web_contents, |
| 196 const content::MediaStreamDevices& devices, | 196 const content::MediaStreamDevices& devices, |
| 197 content::MediaStreamRequestResult result, |
| 197 scoped_ptr<content::MediaStreamUI> ui); | 198 scoped_ptr<content::MediaStreamUI> ui); |
| 198 | 199 |
| 199 // Called by the MediaObserver() functions, executed on UI thread. | 200 // Called by the MediaObserver() functions, executed on UI thread. |
| 200 void UpdateAudioDevicesOnUIThread(const content::MediaStreamDevices& devices); | 201 void UpdateAudioDevicesOnUIThread(const content::MediaStreamDevices& devices); |
| 201 void UpdateVideoDevicesOnUIThread(const content::MediaStreamDevices& devices); | 202 void UpdateVideoDevicesOnUIThread(const content::MediaStreamDevices& devices); |
| 202 void UpdateMediaRequestStateOnUIThread( | 203 void UpdateMediaRequestStateOnUIThread( |
| 203 int render_process_id, | 204 int render_process_id, |
| 204 int render_view_id, | 205 int render_view_id, |
| 205 int page_request_id, | 206 int page_request_id, |
| 206 const GURL& security_origin, | 207 const GURL& security_origin, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 int render_view_id; | 244 int render_view_id; |
| 244 int page_request_id; | 245 int page_request_id; |
| 245 }; | 246 }; |
| 246 typedef std::list<DesktopCaptureSession> DesktopCaptureSessions; | 247 typedef std::list<DesktopCaptureSession> DesktopCaptureSessions; |
| 247 DesktopCaptureSessions desktop_capture_sessions_; | 248 DesktopCaptureSessions desktop_capture_sessions_; |
| 248 | 249 |
| 249 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); | 250 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); |
| 250 }; | 251 }; |
| 251 | 252 |
| 252 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ | 253 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ |
| OLD | NEW |