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

Unified Diff: content/browser/renderer_host/media/video_capture_controller.h

Issue 615043006: Release the camera when WebRTC is not visible in Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: content/browser/renderer_host/media/video_capture_controller.h
diff --git a/content/browser/renderer_host/media/video_capture_controller.h b/content/browser/renderer_host/media/video_capture_controller.h
index 2de5ff6bbf795cc898029dfd1afca9108015f281..2cc119d45b4bf5c3c390766898910fc2814e9d20 100644
--- a/content/browser/renderer_host/media/video_capture_controller.h
+++ b/content/browser/renderer_host/media/video_capture_controller.h
@@ -96,8 +96,16 @@ class CONTENT_EXPORT VideoCaptureController {
int RemoveClient(const VideoCaptureControllerID& id,
VideoCaptureControllerEventHandler* event_handler);
+ // Pause or resume the video capture for specified client.
tommi (sloooow) - chröme 2014/10/01 07:17:03 Can you document the side effects of this? (assumi
michaelbai 2014/10/01 22:09:33 Thanks, I added the side effect in VideoCaptureMan
+ void PauseOrResumeClient(const VideoCaptureControllerID& id,
+ VideoCaptureControllerEventHandler* event_handler,
+ bool pause);
+
int GetClientCount();
+ // Return the number of client that isn't paused.
+ int GetActiveClientCount();
tommi (sloooow) - chröme 2014/10/01 07:17:03 const?
michaelbai 2014/10/01 22:09:33 Done.
+
// API called directly by VideoCaptureManager in case the device is
// prematurely closed.
void StopSession(int session_id);

Powered by Google App Engine
This is Rietveld 408576698