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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/media_capture_devices_dispatcher.h
diff --git a/chrome/browser/media/media_capture_devices_dispatcher.h b/chrome/browser/media/media_capture_devices_dispatcher.h
index 2b65ab29b58a57b8ceeadefcbd060503e8eb2893..a64c1813131393d0e6c553b92b7b35b088857424 100644
--- a/chrome/browser/media/media_capture_devices_dispatcher.h
+++ b/chrome/browser/media/media_capture_devices_dispatcher.h
@@ -242,6 +242,10 @@ class MediaCaptureDevicesDispatcher : public content::MediaObserver,
typedef std::list<DesktopCaptureSession> DesktopCaptureSessions;
DesktopCaptureSessions desktop_capture_sessions_;
+ // Number of outstanding screen sharing sessions (includes both tab capture
+ // and desktop capture).
+ int screen_sharing_count_;
+
DISALLOW_COPY_AND_ASSIGN(MediaCaptureDevicesDispatcher);
};

Powered by Google App Engine
This is Rietveld 408576698