OLD | NEW |
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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 DVLOG(1) << "WebMediaPlayerMS::networkState, state:" << network_state_; | 294 DVLOG(1) << "WebMediaPlayerMS::networkState, state:" << network_state_; |
295 return network_state_; | 295 return network_state_; |
296 } | 296 } |
297 | 297 |
298 WebMediaPlayer::ReadyState WebMediaPlayerMS::readyState() const { | 298 WebMediaPlayer::ReadyState WebMediaPlayerMS::readyState() const { |
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() { | |
305 DCHECK(thread_checker_.CalledOnValidThread()); | |
306 return buffered_; | |
307 } | |
308 | |
309 blink::WebTimeRanges WebMediaPlayerMS::buffered() const { | 304 blink::WebTimeRanges WebMediaPlayerMS::buffered() const { |
310 DCHECK(thread_checker_.CalledOnValidThread()); | 305 DCHECK(thread_checker_.CalledOnValidThread()); |
311 return buffered_; | 306 return buffered_; |
312 } | 307 } |
313 | 308 |
314 double WebMediaPlayerMS::maxTimeSeekable() const { | 309 double WebMediaPlayerMS::maxTimeSeekable() const { |
315 DCHECK(thread_checker_.CalledOnValidThread()); | 310 DCHECK(thread_checker_.CalledOnValidThread()); |
316 return 0.0; | 311 return 0.0; |
317 } | 312 } |
318 | 313 |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 GetClient()->readyStateChanged(); | 474 GetClient()->readyStateChanged(); |
480 } | 475 } |
481 | 476 |
482 blink::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() { | 477 blink::WebMediaPlayerClient* WebMediaPlayerMS::GetClient() { |
483 DCHECK(thread_checker_.CalledOnValidThread()); | 478 DCHECK(thread_checker_.CalledOnValidThread()); |
484 DCHECK(client_); | 479 DCHECK(client_); |
485 return client_; | 480 return client_; |
486 } | 481 } |
487 | 482 |
488 } // namespace content | 483 } // namespace content |
OLD | NEW |