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

Side by Side Diff: media/blink/webmediasource_impl.h

Issue 2643743002: Mojify demuxers and allow running {Chunk/FFmpeg}Demuxer in a Utility Process (Closed)
Patch Set: Rebase and make sure to unbind mojom::DemuxerPtr on the bound thread during termination Created 3 years, 10 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
« no previous file with comments | « media/blink/webmediaplayer_impl_unittest.cc ('k') | media/blink/webmediasource_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 MEDIA_BLINK_WEBMEDIASOURCE_IMPL_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIASOURCE_IMPL_H_
6 #define MEDIA_BLINK_WEBMEDIASOURCE_IMPL_H_ 6 #define MEDIA_BLINK_WEBMEDIASOURCE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "media/base/media_log.h" 12 #include "media/base/media_log.h"
13 #include "media/blink/media_blink_export.h" 13 #include "media/blink/media_blink_export.h"
14 #include "third_party/WebKit/public/platform/WebMediaSource.h" 14 #include "third_party/WebKit/public/platform/WebMediaSource.h"
15 15
16 namespace media { 16 namespace media {
17 class ChunkDemuxer; 17 class SourceBuffer;
18 18
19 class MEDIA_BLINK_EXPORT WebMediaSourceImpl 19 class MEDIA_BLINK_EXPORT WebMediaSourceImpl
20 : NON_EXPORTED_BASE(public blink::WebMediaSource) { 20 : NON_EXPORTED_BASE(public blink::WebMediaSource) {
21 public: 21 public:
22 WebMediaSourceImpl(ChunkDemuxer* demuxer, 22 WebMediaSourceImpl(SourceBuffer* demuxer,
23 const scoped_refptr<MediaLog>& media_log); 23 const scoped_refptr<MediaLog>& media_log);
24 ~WebMediaSourceImpl() override; 24 ~WebMediaSourceImpl() override;
25 25
26 // blink::WebMediaSource implementation. 26 // blink::WebMediaSource implementation.
27 AddStatus addSourceBuffer( 27 AddStatus addSourceBuffer(
28 const blink::WebString& type, 28 const blink::WebString& type,
29 const blink::WebString& codecs, 29 const blink::WebString& codecs,
30 blink::WebSourceBuffer** source_buffer) override; 30 blink::WebSourceBuffer** source_buffer) override;
31 double duration() override; 31 double duration() override;
32 void setDuration(double duration) override; 32 void setDuration(double duration) override;
33 void markEndOfStream(EndOfStreamStatus status) override; 33 void markEndOfStream(EndOfStreamStatus status) override;
34 void unmarkEndOfStream() override; 34 void unmarkEndOfStream() override;
35 35
36 private: 36 private:
37 ChunkDemuxer* demuxer_; // Owned by WebMediaPlayerImpl. 37 SourceBuffer* source_buffer_; // Owned by WebMediaPlayerImpl.
38 scoped_refptr<MediaLog> media_log_; 38 scoped_refptr<MediaLog> media_log_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(WebMediaSourceImpl); 40 DISALLOW_COPY_AND_ASSIGN(WebMediaSourceImpl);
41 }; 41 };
42 42
43 } // namespace media 43 } // namespace media
44 44
45 #endif // MEDIA_BLINK_WEBMEDIASOURCE_IMPL_H_ 45 #endif // MEDIA_BLINK_WEBMEDIASOURCE_IMPL_H_
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl_unittest.cc ('k') | media/blink/webmediasource_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698