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

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..efcbe0275e00926d5084f3efc6f961f1d2af9ae4 100644
--- a/content/browser/renderer_host/media/video_capture_controller.h
+++ b/content/browser/renderer_host/media/video_capture_controller.h
@@ -96,7 +96,15 @@ class CONTENT_EXPORT VideoCaptureController {
int RemoveClient(const VideoCaptureControllerID& id,
VideoCaptureControllerEventHandler* event_handler);
- int GetClientCount();
+ // Pause or resume the video capture for specified client.
+ void PauseOrResumeClient(const VideoCaptureControllerID& id,
Tom Sepez 2014/10/02 17:16:26 Maybe split it into separate pause/resume methods
michaelbai 2014/10/02 18:55:39 there will have a lot of duplicated code in implem
+ VideoCaptureControllerEventHandler* event_handler,
+ bool pause);
+
+ int GetClientCount() const;
+
+ // Return the number of client that isn't paused.
Tom Sepez 2014/10/02 17:16:26 nit: // Return the number of clients that aren't p
michaelbai 2014/10/02 18:55:39 Done.
+ int GetActiveClientCount() const;
// API called directly by VideoCaptureManager in case the device is
// prematurely closed.

Powered by Google App Engine
This is Rietveld 408576698