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

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

Issue 794343003: Implement evictFrames() to support MSE's coded frame eviction algorithm. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated existing SourceBufferStream unittests Created 6 years 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.cc ('k') | media/blink/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 MEDIA_BLINK_WEBSOURCEBUFFER_IMPL_H_ 5 #ifndef MEDIA_BLINK_WEBSOURCEBUFFER_IMPL_H_
6 #define MEDIA_BLINK_WEBSOURCEBUFFER_IMPL_H_ 6 #define MEDIA_BLINK_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 "base/time/time.h" 12 #include "base/time/time.h"
13 #include "third_party/WebKit/public/platform/WebSourceBuffer.h" 13 #include "third_party/WebKit/public/platform/WebSourceBuffer.h"
14 14
15 namespace media { 15 namespace media {
16 class ChunkDemuxer; 16 class ChunkDemuxer;
17 17
18 class WebSourceBufferImpl : public blink::WebSourceBuffer { 18 class WebSourceBufferImpl : public blink::WebSourceBuffer {
19 public: 19 public:
20 WebSourceBufferImpl(const std::string& id, ChunkDemuxer* demuxer); 20 WebSourceBufferImpl(const std::string& id, ChunkDemuxer* demuxer);
21 virtual ~WebSourceBufferImpl(); 21 virtual ~WebSourceBufferImpl();
22 22
23 // blink::WebSourceBuffer implementation. 23 // blink::WebSourceBuffer implementation.
24 virtual void setClient(blink::WebSourceBufferClient* client); 24 virtual void setClient(blink::WebSourceBufferClient* client);
25 virtual bool setMode(AppendMode mode); 25 virtual bool setMode(AppendMode mode);
26 virtual blink::WebTimeRanges buffered(); 26 virtual blink::WebTimeRanges buffered();
27 virtual bool evictCodedFrames();
27 virtual void append( 28 virtual void append(
28 const unsigned char* data, 29 const unsigned char* data,
29 unsigned length, 30 unsigned length,
30 double* timestamp_offset); 31 double* timestamp_offset);
31 virtual void abort(); 32 virtual void abort();
32 virtual void remove(double start, double end); 33 virtual void remove(double start, double end);
33 virtual bool setTimestampOffset(double offset); 34 virtual bool setTimestampOffset(double offset);
34 virtual void setAppendWindowStart(double start); 35 virtual void setAppendWindowStart(double start);
35 virtual void setAppendWindowEnd(double end); 36 virtual void setAppendWindowEnd(double end);
36 virtual void removedFromMediaSource(); 37 virtual void removedFromMediaSource();
(...skipping 15 matching lines...) Expand all
52 53
53 base::TimeDelta append_window_start_; 54 base::TimeDelta append_window_start_;
54 base::TimeDelta append_window_end_; 55 base::TimeDelta append_window_end_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(WebSourceBufferImpl); 57 DISALLOW_COPY_AND_ASSIGN(WebSourceBufferImpl);
57 }; 58 };
58 59
59 } // namespace media 60 } // namespace media
60 61
61 #endif // MEDIA_BLINK_WEBSOURCEBUFFER_IMPL_H_ 62 #endif // MEDIA_BLINK_WEBSOURCEBUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl.cc ('k') | media/blink/websourcebuffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698