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

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

Issue 2076673005: MSE: Plumb ChunkDemuxer appendData failures into append Error algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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 | « no previous file | 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 WebSourceBufferImpl(const std::string& id, ChunkDemuxer* demuxer); 24 WebSourceBufferImpl(const std::string& id, ChunkDemuxer* demuxer);
25 ~WebSourceBufferImpl() override; 25 ~WebSourceBufferImpl() override;
26 26
27 // blink::WebSourceBuffer implementation. 27 // blink::WebSourceBuffer implementation.
28 void setClient(blink::WebSourceBufferClient* client) override; 28 void setClient(blink::WebSourceBufferClient* client) override;
29 bool setMode(AppendMode mode) override; 29 bool setMode(AppendMode mode) override;
30 blink::WebTimeRanges buffered() override; 30 blink::WebTimeRanges buffered() override;
31 bool evictCodedFrames(double currentPlaybackTime, 31 bool evictCodedFrames(double currentPlaybackTime,
32 size_t newDataSize) override; 32 size_t newDataSize) override;
33 void append( 33 bool append(const unsigned char* data,
34 const unsigned char* data, 34 unsigned length,
35 unsigned length, 35 double* timestamp_offset) override;
36 double* timestamp_offset) override;
37 void resetParserState() override; 36 void resetParserState() override;
38 void remove(double start, double end) override; 37 void remove(double start, double end) override;
39 bool setTimestampOffset(double offset) override; 38 bool setTimestampOffset(double offset) override;
40 void setAppendWindowStart(double start) override; 39 void setAppendWindowStart(double start) override;
41 void setAppendWindowEnd(double end) override; 40 void setAppendWindowEnd(double end) override;
42 void removedFromMediaSource() override; 41 void removedFromMediaSource() override;
43 42
44 private: 43 private:
45 // Demuxer callback handler to process an initialization segment received 44 // Demuxer callback handler to process an initialization segment received
46 // during an append() call. 45 // during an append() call.
(...skipping 11 matching lines...) Expand all
58 57
59 base::TimeDelta append_window_start_; 58 base::TimeDelta append_window_start_;
60 base::TimeDelta append_window_end_; 59 base::TimeDelta append_window_end_;
61 60
62 DISALLOW_COPY_AND_ASSIGN(WebSourceBufferImpl); 61 DISALLOW_COPY_AND_ASSIGN(WebSourceBufferImpl);
63 }; 62 };
64 63
65 } // namespace media 64 } // namespace media
66 65
67 #endif // MEDIA_BLINK_WEBSOURCEBUFFER_IMPL_H_ 66 #endif // MEDIA_BLINK_WEBSOURCEBUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | media/blink/websourcebuffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698