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

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

Issue 495353003: Move WebMediaPlayerImpl and its dependencies to media/blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Exclude media/blink from Android GN builds for now like cc/blink does. Created 6 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 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 CONTENT_RENDERER_MEDIA_WEBMEDIASOURCE_IMPL_H_ 5 #ifndef MEDIA_BLINK_WEBMEDIASOURCE_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_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 "media/base/media_export.h"
11 #include "media/base/media_log.h" 12 #include "media/base/media_log.h"
12 #include "third_party/WebKit/public/platform/WebMediaSource.h" 13 #include "third_party/WebKit/public/platform/WebMediaSource.h"
13 14
14 namespace media { 15 namespace media {
15 class ChunkDemuxer; 16 class ChunkDemuxer;
16 }
17 17
18 namespace content { 18 class MEDIA_EXPORT WebMediaSourceImpl : public blink::WebMediaSource {
19
20 class WebMediaSourceImpl : public blink::WebMediaSource {
21 public: 19 public:
22 WebMediaSourceImpl(media::ChunkDemuxer* demuxer, media::LogCB log_cb); 20 WebMediaSourceImpl(ChunkDemuxer* demuxer, LogCB log_cb);
23 virtual ~WebMediaSourceImpl(); 21 virtual ~WebMediaSourceImpl();
24 22
25 // blink::WebMediaSource implementation. 23 // blink::WebMediaSource implementation.
26 virtual AddStatus addSourceBuffer( 24 virtual AddStatus addSourceBuffer(
27 const blink::WebString& type, 25 const blink::WebString& type,
28 const blink::WebVector<blink::WebString>& codecs, 26 const blink::WebVector<blink::WebString>& codecs,
29 blink::WebSourceBuffer** source_buffer); 27 blink::WebSourceBuffer** source_buffer);
30 virtual double duration(); 28 virtual double duration();
31 virtual void setDuration(double duration); 29 virtual void setDuration(double duration);
32 virtual void markEndOfStream(EndOfStreamStatus status); 30 virtual void markEndOfStream(EndOfStreamStatus status);
33 virtual void unmarkEndOfStream(); 31 virtual void unmarkEndOfStream();
34 32
35 private: 33 private:
36 media::ChunkDemuxer* demuxer_; // Owned by WebMediaPlayerImpl. 34 ChunkDemuxer* demuxer_; // Owned by WebMediaPlayerImpl.
37 media::LogCB log_cb_; 35 LogCB log_cb_;
38 36
39 DISALLOW_COPY_AND_ASSIGN(WebMediaSourceImpl); 37 DISALLOW_COPY_AND_ASSIGN(WebMediaSourceImpl);
40 }; 38 };
41 39
42 } // namespace content 40 } // namespace media
43 41
44 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIASOURCE_IMPL_H_ 42 #endif // MEDIA_BLINK_WEBMEDIASOURCE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698