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

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

Issue 2377163002: VideoCaptureImpl cleanup: merge ctor+Init() and DeInit()+dtor. (Closed)
Patch Set: miu@s comment on passing |io_task_runner| argument Created 4 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
« no previous file with comments | « no previous file | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/video_capture_impl.h
diff --git a/content/renderer/media/video_capture_impl.h b/content/renderer/media/video_capture_impl.h
index 419af4f749abcdd5a804cbed726de0b2b897f4ac..5df25bea7cfea0672bbffcf7c6a9e837dd39807f 100644
--- a/content/renderer/media/video_capture_impl.h
+++ b/content/renderer/media/video_capture_impl.h
@@ -48,14 +48,10 @@ class CONTENT_EXPORT VideoCaptureImpl
public:
~VideoCaptureImpl() override;
- VideoCaptureImpl(media::VideoCaptureSessionId session_id,
- VideoCaptureMessageFilter* filter);
-
- // Start listening to IPC messages.
- void Init();
-
- // Stop listening to IPC messages.
- void DeInit();
+ VideoCaptureImpl(
+ media::VideoCaptureSessionId session_id,
+ VideoCaptureMessageFilter* filter,
+ scoped_refptr<base::SingleThreadTaskRunner> io_task_runner);
// Stop/resume delivering video frames to clients, based on flag |suspend|.
void SuspendCapture(bool suspend);
@@ -198,7 +194,7 @@ class CONTENT_EXPORT VideoCaptureImpl
VideoCaptureState state_;
// IO message loop reference for checking correct class operation.
- scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
+ const scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
// WeakPtrFactory pointing back to |this| object, for use with
// media::VideoFrames constructed in OnBufferReceived() from buffers cached
« no previous file with comments | « no previous file | content/renderer/media/video_capture_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698