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

Side by Side Diff: webkit/glue/media/simple_data_source.cc

Issue 8294025: Merge 105121 - Numerous fixes to audio/video buffered resource loading. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/874/src/
Patch Set: '' Created 9 years, 2 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 | « webkit/glue/media/simple_data_source.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "webkit/glue/media/simple_data_source.h" 5 #include "webkit/glue/media/simple_data_source.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/process_util.h" 8 #include "base/process_util.h"
9 #include "media/base/filter_host.h" 9 #include "media/base/filter_host.h"
10 #include "media/base/media_log.h" 10 #include "media/base/media_log.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 bool SimpleDataSource::GetSize(int64* size_out) { 138 bool SimpleDataSource::GetSize(int64* size_out) {
139 *size_out = size_; 139 *size_out = size_;
140 return true; 140 return true;
141 } 141 }
142 142
143 bool SimpleDataSource::IsStreaming() { 143 bool SimpleDataSource::IsStreaming() {
144 return false; 144 return false;
145 } 145 }
146 146
147 void SimpleDataSource::SetPreload(media::Preload preload) {} 147 void SimpleDataSource::SetPreload(media::Preload preload) {
148 }
149
150 void SimpleDataSource::SetBitrate(int bitrate) {
151 }
148 152
149 void SimpleDataSource::SetURLLoaderForTest(WebKit::WebURLLoader* mock_loader) { 153 void SimpleDataSource::SetURLLoaderForTest(WebKit::WebURLLoader* mock_loader) {
150 url_loader_.reset(mock_loader); 154 url_loader_.reset(mock_loader);
151 keep_test_loader_ = true; 155 keep_test_loader_ = true;
152 } 156 }
153 157
154 void SimpleDataSource::willSendRequest( 158 void SimpleDataSource::willSendRequest(
155 WebKit::WebURLLoader* loader, 159 WebKit::WebURLLoader* loader,
156 WebKit::WebURLRequest& newRequest, 160 WebKit::WebURLRequest& newRequest,
157 const WebKit::WebURLResponse& redirectResponse) { 161 const WebKit::WebURLResponse& redirectResponse) {
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 void SimpleDataSource::UpdateHostState() { 355 void SimpleDataSource::UpdateHostState() {
352 if (host()) { 356 if (host()) {
353 host()->SetTotalBytes(size_); 357 host()->SetTotalBytes(size_);
354 host()->SetBufferedBytes(size_); 358 host()->SetBufferedBytes(size_);
355 // If scheme is file or data, say we are loaded. 359 // If scheme is file or data, say we are loaded.
356 host()->SetLoaded(url_.SchemeIsFile() || url_.SchemeIs(kDataScheme)); 360 host()->SetLoaded(url_.SchemeIsFile() || url_.SchemeIs(kDataScheme));
357 } 361 }
358 } 362 }
359 363
360 } // namespace webkit_glue 364 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/media/simple_data_source.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698