Chromium Code Reviews| Index: content/renderer/media/video_track_recorder.h |
| diff --git a/content/renderer/media/video_track_recorder.h b/content/renderer/media/video_track_recorder.h |
| index 5e624549224362132c2a842d31db65ae3d0369d6..d6f789e0837799c65a2f2e4f06c5dddfcd9e2f36 100644 |
| --- a/content/renderer/media/video_track_recorder.h |
| +++ b/content/renderer/media/video_track_recorder.h |
| @@ -9,6 +9,8 @@ |
| #include "base/macros.h" |
| #include "base/memory/ref_counted.h" |
| +#include "base/memory/weak_ptr.h" |
| +#include "base/single_thread_task_runner.h" |
| #include "base/threading/thread_checker.h" |
| #include "content/public/common/features.h" |
| #include "content/public/renderer/media_stream_video_sink.h" |
| @@ -56,6 +58,9 @@ class CONTENT_EXPORT VideoTrackRecorder |
| private: |
| friend class VideoTrackRecorderTest; |
| + void InitializeEncoder(const scoped_refptr<media::VideoFrame>& frame, |
| + base::TimeTicks capture_time); |
| + |
| // Used to check that we are destroyed on the same thread we were created. |
| base::ThreadChecker main_render_thread_checker_; |
| @@ -65,6 +70,16 @@ class CONTENT_EXPORT VideoTrackRecorder |
| // Inner class to encode using whichever codec is configured. |
| scoped_refptr<Encoder> encoder_; |
| + // Parameters that would be passed to the underlying |encoder_|. |
| + const CodecId codec_; |
| + const OnEncodedVideoCB on_encoded_video_callback_; |
| + const int32_t bits_per_second_; |
|
mcasas
2016/07/08 22:59:27
Don't extend this class' inner state (i.e. # membe
emircan
2016/07/12 01:00:35
Done. However, I still need to hold onto this info
|
| + |
| + // Used to track the paused state during the initialization process. |
| + bool paused_before_init_; |
| + |
| + base::WeakPtrFactory<VideoTrackRecorder> weak_ptr_factory_; |
|
mcasas
2016/07/08 22:59:27
This is not used in favour of base::Unretained(thi
emircan
2016/07/12 01:00:35
Done.
|
| + |
| DISALLOW_COPY_AND_ASSIGN(VideoTrackRecorder); |
| }; |