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

Unified Diff: content/renderer/media/video_capture_impl_manager.h

Issue 2763743002: Android: not to pause screen capture when Chrome is put to background (Closed)
Patch Set: restore logic in VideoCaptureImplManager Created 3 years, 9 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/renderer/media/video_capture_impl_manager.h
diff --git a/content/renderer/media/video_capture_impl_manager.h b/content/renderer/media/video_capture_impl_manager.h
index 4d2e8fcf6144187f5cb8e9ee632cde4987afee6b..18f63765cc26a16a51f18030b5d51495c3f56253 100644
--- a/content/renderer/media/video_capture_impl_manager.h
+++ b/content/renderer/media/video_capture_impl_manager.h
@@ -16,6 +16,7 @@
#include "base/synchronization/lock.h"
#include "base/threading/thread_checker.h"
#include "content/common/content_export.h"
+#include "content/common/media/media_stream_options.h"
#include "content/common/media/video_capture.h"
#include "content/public/renderer/media_stream_video_sink.h"
#include "media/capture/video_capture_types.h"
@@ -90,11 +91,14 @@ class CONTENT_EXPORT VideoCaptureImplManager {
void GetDeviceFormatsInUse(media::VideoCaptureSessionId id,
const VideoCaptureDeviceFormatsCB& callback);
- // Make all existing VideoCaptureImpl instances stop/resume delivering
- // video frames to their clients, depends on flag |suspend|. This is called in
- // response to a RenderView-wide PageHidden/Shown() event. To suspend/resume
- // an individual session, please call Suspend(id) or Resume(id).
- void SuspendDevices(bool suspend);
+ // Make all VideoCaptureImpl instances in the input |video_device_array|
+ // stop/resume delivering video frames to their clients, depends on flag
+ // |suspend|. This is called in response to a RenderView-wide
+ // PageHidden/Shown() event.
+ // To suspend/resume an individual session, please call Suspend(id) or
+ // Resume(id).
+ void SuspendDevices(const StreamDeviceInfoArray& video_device_array,
+ bool suspend);
virtual std::unique_ptr<VideoCaptureImpl> CreateVideoCaptureImplForTesting(
media::VideoCaptureSessionId session_id) const;

Powered by Google App Engine
This is Rietveld 408576698