| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 bool recording_; | 90 bool recording_; |
| 91 blink::WebMediaStream media_stream_; // The MediaStream being recorded. | 91 blink::WebMediaStream media_stream_; // The MediaStream being recorded. |
| 92 | 92 |
| 93 // |client_| is a weak pointer, and is valid for the lifetime of this object. | 93 // |client_| is a weak pointer, and is valid for the lifetime of this object. |
| 94 blink::WebMediaRecorderHandlerClient* client_; | 94 blink::WebMediaRecorderHandlerClient* client_; |
| 95 | 95 |
| 96 ScopedVector<VideoTrackRecorder> video_recorders_; | 96 ScopedVector<VideoTrackRecorder> video_recorders_; |
| 97 ScopedVector<AudioTrackRecorder> audio_recorders_; | 97 ScopedVector<AudioTrackRecorder> audio_recorders_; |
| 98 | 98 |
| 99 #if !defined(MEDIA_DISABLE_LIBWEBM) | |
| 100 // Worker class doing the actual Webm Muxing work. | 99 // Worker class doing the actual Webm Muxing work. |
| 101 scoped_ptr<media::WebmMuxer> webm_muxer_; | 100 scoped_ptr<media::WebmMuxer> webm_muxer_; |
| 102 #endif | |
| 103 | 101 |
| 104 base::WeakPtrFactory<MediaRecorderHandler> weak_factory_; | 102 base::WeakPtrFactory<MediaRecorderHandler> weak_factory_; |
| 105 | 103 |
| 106 DISALLOW_COPY_AND_ASSIGN(MediaRecorderHandler); | 104 DISALLOW_COPY_AND_ASSIGN(MediaRecorderHandler); |
| 107 }; | 105 }; |
| 108 | 106 |
| 109 } // namespace content | 107 } // namespace content |
| 110 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_ | 108 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_ |
| OLD | NEW |