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

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

Issue 20123002: Add Chromium-side support for SourceBuffer.appendWindowStart and SourceBuffer.appendWindowEnd. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and remove URL in comment to make presubmit happy. Created 7 years, 4 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"
(...skipping 11 matching lines...) Expand all
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 // WebKit::WebSourceBuffer implementation. 25 // WebKit::WebSourceBuffer implementation.
26 virtual WebKit::WebTimeRanges buffered() OVERRIDE; 26 virtual WebKit::WebTimeRanges buffered() OVERRIDE;
27 virtual void append(const unsigned char* data, unsigned length) OVERRIDE; 27 virtual void append(const unsigned char* data, unsigned length) OVERRIDE;
28 virtual void abort() OVERRIDE; 28 virtual void abort() OVERRIDE;
29 // TODO(acolwell): Add OVERRIDE when Blink-side changes land. 29 // TODO(acolwell): Add OVERRIDE when Blink-side changes land.
30 virtual void remove(double start, double end); 30 virtual void remove(double start, double end);
31 virtual bool setTimestampOffset(double offset) OVERRIDE; 31 virtual bool setTimestampOffset(double offset) OVERRIDE;
32 // TODO(acolwell): Add OVERRIDE when Blink-side changes land.
33 virtual void setAppendWindowStart(double start);
34 virtual void setAppendWindowEnd(double end);
32 virtual void removedFromMediaSource() OVERRIDE; 35 virtual void removedFromMediaSource() OVERRIDE;
33 36
34 private: 37 private:
35 std::string id_; 38 std::string id_;
36 media::ChunkDemuxer* demuxer_; // Owned by WebMediaPlayerImpl. 39 media::ChunkDemuxer* demuxer_; // Owned by WebMediaPlayerImpl.
37 40
38 DISALLOW_COPY_AND_ASSIGN(WebSourceBufferImpl); 41 DISALLOW_COPY_AND_ASSIGN(WebSourceBufferImpl);
39 }; 42 };
40 43
41 } // namespace content 44 } // namespace content
42 45
43 #endif // CONTENT_RENDERER_MEDIA_WEBSOURCEBUFFER_IMPL_H_ 46 #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