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

Side by Side Diff: content/renderer/media/media_recorder_handler.h

Issue 1351473006: WebmMuxer-MediaRecorderHandler: thread hopping and data ownership (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 bool recording_; 68 bool recording_;
69 blink::WebMediaStream media_stream_; // The MediaStream being recorded. 69 blink::WebMediaStream media_stream_; // The MediaStream being recorded.
70 70
71 // |client_| is a weak pointer, and is valid for the lifetime of this object. 71 // |client_| is a weak pointer, and is valid for the lifetime of this object.
72 blink::WebMediaRecorderHandlerClient* client_; 72 blink::WebMediaRecorderHandlerClient* client_;
73 73
74 ScopedVector<VideoTrackRecorder> video_recorders_; 74 ScopedVector<VideoTrackRecorder> video_recorders_;
75 75
76 // Worker class doing the actual Webm Muxing work. 76 // Worker class doing the actual Webm Muxing work.
77 scoped_ptr<media::WebmMuxer> webm_muxer_; 77 scoped_refptr<media::WebmMuxer> webm_muxer_;
78 78
79 base::WeakPtrFactory<MediaRecorderHandler> weak_factory_; 79 base::WeakPtrFactory<MediaRecorderHandler> weak_factory_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(MediaRecorderHandler); 81 DISALLOW_COPY_AND_ASSIGN(MediaRecorderHandler);
82 }; 82 };
83 83
84 } // namespace content 84 } // namespace content
85 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_ 85 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RECORDER_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/media_recorder_handler.cc » ('j') | media/capture/webm_muxer.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698