Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(530)

Side by Side Diff: chrome/browser/media/media_capture_devices_dispatcher.h

Issue 139053003: Chrome OS: avoid suspending on lid close when casting is active. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Oshima's suggestion. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698