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

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: 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..98c9fd355afec0a3b606d8250c21b1eed1a80f66 100644
--- a/content/renderer/media/video_capture_impl_manager.h
+++ b/content/renderer/media/video_capture_impl_manager.h
@@ -90,12 +90,6 @@ 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);
-
virtual std::unique_ptr<VideoCaptureImpl> CreateVideoCaptureImplForTesting(
media::VideoCaptureSessionId session_id) const;
@@ -117,11 +111,6 @@ class CONTENT_EXPORT VideoCaptureImplManager {
// right thread.
const scoped_refptr<base::SingleThreadTaskRunner> render_main_task_runner_;
- // Set to true if SuspendDevices(true) was called. This, along with
- // DeviceEntry::is_individually_suspended, is used to determine whether to
- // take action when suspending/resuming each device.
- bool is_suspending_all_;
-
// Bound to the render thread.
// NOTE: Weak pointers must be invalidated before all other member variables.
base::WeakPtrFactory<VideoCaptureImplManager> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698