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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 // MEDIA_REQUEST_STATE_DONE state. Sessions are remove when | 235 // MEDIA_REQUEST_STATE_DONE state. Sessions are remove when |
236 // MEDIA_REQUEST_STATE_CLOSING is encountered. | 236 // MEDIA_REQUEST_STATE_CLOSING is encountered. |
237 struct DesktopCaptureSession { | 237 struct DesktopCaptureSession { |
238 int render_process_id; | 238 int render_process_id; |
239 int render_view_id; | 239 int render_view_id; |
240 int page_request_id; | 240 int page_request_id; |
241 }; | 241 }; |
242 typedef std::list<DesktopCaptureSession> DesktopCaptureSessions; | 242 typedef std::list<DesktopCaptureSession> DesktopCaptureSessions; |
243 DesktopCaptureSessions desktop_capture_sessions_; | 243 DesktopCaptureSessions desktop_capture_sessions_; |
244 | 244 |
| 245 // Number of outstanding screen sharing sessions (includes both tab capture |
| 246 // and desktop capture). |
| 247 int screen_sharing_count_; |
| 248 |
245 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); | 249 DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher); |
246 }; | 250 }; |
247 | 251 |
248 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ | 252 #endif // CHROME_BROWSER_MEDIA_MEDIA_CAPTURE_DEVICES_DISPATCHER_H_ |
OLD | NEW |