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

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

Issue 183933002: Remove old WebSourceBufferImpl::append() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased after the first (chromium) part landed. Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/media/websourcebuffer_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 CONTENT_RENDERER_MEDIA_WEBSOURCEBUFFER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBSOURCEBUFFER_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_WEBSOURCEBUFFER_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBSOURCEBUFFER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "third_party/WebKit/public/platform/WebSourceBuffer.h" 12 #include "third_party/WebKit/public/platform/WebSourceBuffer.h"
13 13
14 namespace media { 14 namespace media {
15 class ChunkDemuxer; 15 class ChunkDemuxer;
16 } 16 }
17 17
18 namespace content { 18 namespace content {
19 19
20 class WebSourceBufferImpl : public blink::WebSourceBuffer { 20 class WebSourceBufferImpl : public blink::WebSourceBuffer {
21 public: 21 public:
22 WebSourceBufferImpl(const std::string& id, media::ChunkDemuxer* demuxer); 22 WebSourceBufferImpl(const std::string& id, media::ChunkDemuxer* demuxer);
23 virtual ~WebSourceBufferImpl(); 23 virtual ~WebSourceBufferImpl();
24 24
25 // blink::WebSourceBuffer implementation. 25 // blink::WebSourceBuffer implementation.
26 virtual bool setMode(AppendMode mode); 26 virtual bool setMode(AppendMode mode);
27 virtual blink::WebTimeRanges buffered(); 27 virtual blink::WebTimeRanges buffered();
28 virtual void append(const unsigned char* data, unsigned length);
29 // TODO(wolenetz): Remove the append(), above, and its implementation once the
30 // following append() signature is used by Blink. See http://crbug.com/249422.
31 virtual void append( 28 virtual void append(
32 const unsigned char* data, 29 const unsigned char* data,
33 unsigned length, 30 unsigned length,
34 double* timestamp_offset); 31 double* timestamp_offset);
35 virtual void abort(); 32 virtual void abort();
36 virtual void remove(double start, double end); 33 virtual void remove(double start, double end);
37 virtual bool setTimestampOffset(double offset); 34 virtual bool setTimestampOffset(double offset);
38 virtual void setAppendWindowStart(double start); 35 virtual void setAppendWindowStart(double start);
39 virtual void setAppendWindowEnd(double end); 36 virtual void setAppendWindowEnd(double end);
40 virtual void removedFromMediaSource(); 37 virtual void removedFromMediaSource();
41 38
42 private: 39 private:
43 std::string id_; 40 std::string id_;
44 media::ChunkDemuxer* demuxer_; // Owned by WebMediaPlayerImpl. 41 media::ChunkDemuxer* demuxer_; // Owned by WebMediaPlayerImpl.
45 42
46 DISALLOW_COPY_AND_ASSIGN(WebSourceBufferImpl); 43 DISALLOW_COPY_AND_ASSIGN(WebSourceBufferImpl);
47 }; 44 };
48 45
49 } // namespace content 46 } // namespace content
50 47
51 #endif // CONTENT_RENDERER_MEDIA_WEBSOURCEBUFFER_IMPL_H_ 48 #endif // CONTENT_RENDERER_MEDIA_WEBSOURCEBUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/websourcebuffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698