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

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

Issue 361023003: WIP fixing/extending acolwell's init-segment-received patch Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased to ToT. Lots of further work needed (BIG TODOs, nits-to-self, etc) Created 6 years, 5 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 | « content/renderer/media/websourcebuffer_impl.h ('k') | media/filters/chunk_demuxer.h » ('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 #include "content/renderer/media/websourcebuffer_impl.h" 5 #include "content/renderer/media/websourcebuffer_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/float_util.h" 9 #include "base/float_util.h"
10 #include "media/filters/chunk_demuxer.h" 10 #include "media/filters/chunk_demuxer.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void WebSourceBufferImpl::setAppendWindowEnd(double end) { 124 void WebSourceBufferImpl::setAppendWindowEnd(double end) {
125 DCHECK_GE(end, 0); 125 DCHECK_GE(end, 0);
126 append_window_end_ = DoubleToTimeDelta(end); 126 append_window_end_ = DoubleToTimeDelta(end);
127 } 127 }
128 128
129 void WebSourceBufferImpl::removedFromMediaSource() { 129 void WebSourceBufferImpl::removedFromMediaSource() {
130 demuxer_->RemoveId(id_); 130 demuxer_->RemoveId(id_);
131 demuxer_ = NULL; 131 demuxer_ = NULL;
132 } 132 }
133 133
134 void WebSourceBufferImpl::OnNewInitSegment(
135 const media::InitSegment& init_segment,
136 bool active_track_flag) {
137 // BIG TODO: continue WIP from here: Blink integration+PhilipJ's patch
138 }
139
134 } // namespace content 140 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/websourcebuffer_impl.h ('k') | media/filters/chunk_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698