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

Side by Side Diff: webkit/renderer/media/buffered_data_source.cc

Issue 16155009: Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
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 "webkit/renderer/media/buffered_data_source.h" 5 #include "webkit/renderer/media/buffered_data_source.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/message_loop_proxy.h" 9 #include "base/message_loop_proxy.h"
10 #include "media/base/media_log.h" 10 #include "media/base/media_log.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 BufferedResourceLoader::kReadThenDefer : 115 BufferedResourceLoader::kReadThenDefer :
116 BufferedResourceLoader::kCapacityDefer; 116 BufferedResourceLoader::kCapacityDefer;
117 117
118 return new BufferedResourceLoader(url_, 118 return new BufferedResourceLoader(url_,
119 cors_mode_, 119 cors_mode_,
120 first_byte_position, 120 first_byte_position,
121 last_byte_position, 121 last_byte_position,
122 strategy, 122 strategy,
123 bitrate_, 123 bitrate_,
124 playback_rate_, 124 playback_rate_,
125 media_log_); 125 media_log_.get());
126 } 126 }
127 127
128 void BufferedDataSource::set_host(media::DataSourceHost* host) { 128 void BufferedDataSource::set_host(media::DataSourceHost* host) {
129 DataSource::set_host(host); 129 DataSource::set_host(host);
130 130
131 if (loader_) { 131 if (loader_) {
132 base::AutoLock auto_lock(lock_); 132 base::AutoLock auto_lock(lock_);
133 UpdateHostState_Locked(); 133 UpdateHostState_Locked();
134 } 134 }
135 } 135 }
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 if (total_bytes_ == kPositionNotSpecified) 529 if (total_bytes_ == kPositionNotSpecified)
530 return; 530 return;
531 531
532 host()->SetTotalBytes(total_bytes_); 532 host()->SetTotalBytes(total_bytes_);
533 533
534 if (assume_fully_buffered_) 534 if (assume_fully_buffered_)
535 host()->AddBufferedByteRange(0, total_bytes_); 535 host()->AddBufferedByteRange(0, total_bytes_);
536 } 536 }
537 537
538 } // namespace webkit_media 538 } // namespace webkit_media
OLDNEW
« no previous file with comments | « webkit/renderer/compositor_bindings/web_layer_impl.cc ('k') | webkit/renderer/media/crypto/ppapi_decryptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698