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

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

Issue 282073003: Add return-by-value implementations of blink::WebMediaPlayer::buffered() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 | « content/renderer/media/webmediaplayer_ms.h ('k') | media/base/pipeline.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/webmediaplayer_ms.h" 5 #include "content/renderer/media/webmediaplayer_ms.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 DCHECK(thread_checker_.CalledOnValidThread()); 299 DCHECK(thread_checker_.CalledOnValidThread());
300 DVLOG(1) << "WebMediaPlayerMS::readyState, state:" << ready_state_; 300 DVLOG(1) << "WebMediaPlayerMS::readyState, state:" << ready_state_;
301 return ready_state_; 301 return ready_state_;
302 } 302 }
303 303
304 const blink::WebTimeRanges& WebMediaPlayerMS::buffered() { 304 const blink::WebTimeRanges& WebMediaPlayerMS::buffered() {
305 DCHECK(thread_checker_.CalledOnValidThread()); 305 DCHECK(thread_checker_.CalledOnValidThread());
306 return buffered_; 306 return buffered_;
307 } 307 }
308 308
309 blink::WebTimeRanges WebMediaPlayerMS::buffered() const {
310 DCHECK(thread_checker_.CalledOnValidThread());
311 return buffered_;
312 }
313
309 double WebMediaPlayerMS::maxTimeSeekable() const { 314 double WebMediaPlayerMS::maxTimeSeekable() const {
310 DCHECK(thread_checker_.CalledOnValidThread()); 315 DCHECK(thread_checker_.CalledOnValidThread());
311 return 0.0; 316 return 0.0;
312 } 317 }
313 318
314 bool WebMediaPlayerMS::didLoadingProgress() const { 319 bool WebMediaPlayerMS::didLoadingProgress() const {
315 DCHECK(thread_checker_.CalledOnValidThread()); 320 DCHECK(thread_checker_.CalledOnValidThread());
316 return true; 321 return true;
317 } 322 }
318 323
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 GetClient()->readyStateChanged(); 484 GetClient()->readyStateChanged();
480 } 485 }
481 486
482 blink::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() { 487 blink::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() {
483 DCHECK(thread_checker_.CalledOnValidThread()); 488 DCHECK(thread_checker_.CalledOnValidThread());
484 DCHECK(client_); 489 DCHECK(client_);
485 return client_; 490 return client_;
486 } 491 }
487 492
488 } // namespace content 493 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webmediaplayer_ms.h ('k') | media/base/pipeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698