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/android/webmediaplayer_android.h" | 5 #include "content/renderer/media/android/webmediaplayer_android.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <limits> | 9 #include <limits> |
10 | 10 |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 | 598 |
599 return std::min( | 599 return std::min( |
600 (const_cast<media::TimeDeltaInterpolator*>( | 600 (const_cast<media::TimeDeltaInterpolator*>( |
601 &interpolator_))->GetInterpolatedTime(), duration_).InSecondsF(); | 601 &interpolator_))->GetInterpolatedTime(), duration_).InSecondsF(); |
602 } | 602 } |
603 | 603 |
604 WebSize WebMediaPlayerAndroid::naturalSize() const { | 604 WebSize WebMediaPlayerAndroid::naturalSize() const { |
605 return natural_size_; | 605 return natural_size_; |
606 } | 606 } |
607 | 607 |
608 WebMediaPlayer::NetworkState WebMediaPlayerAndroid::networkState() const { | 608 WebMediaPlayer::NetworkState WebMediaPlayerAndroid::getNetworkState() const { |
609 return network_state_; | 609 return network_state_; |
610 } | 610 } |
611 | 611 |
612 WebMediaPlayer::ReadyState WebMediaPlayerAndroid::readyState() const { | 612 WebMediaPlayer::ReadyState WebMediaPlayerAndroid::getReadyState() const { |
613 return ready_state_; | 613 return ready_state_; |
614 } | 614 } |
615 | 615 |
616 blink::WebTimeRanges WebMediaPlayerAndroid::buffered() const { | 616 blink::WebTimeRanges WebMediaPlayerAndroid::buffered() const { |
617 if (media_source_delegate_) | 617 if (media_source_delegate_) |
618 return media_source_delegate_->Buffered(); | 618 return media_source_delegate_->Buffered(); |
619 return buffered_; | 619 return buffered_; |
620 } | 620 } |
621 | 621 |
622 blink::WebTimeRanges WebMediaPlayerAndroid::seekable() const { | 622 blink::WebTimeRanges WebMediaPlayerAndroid::seekable() const { |
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1656 result = PREDICTION_RESULT_PATH_BASED_WAS_BETTER; | 1656 result = PREDICTION_RESULT_PATH_BASED_WAS_BETTER; |
1657 } else if (is_hls_url == is_hls) { | 1657 } else if (is_hls_url == is_hls) { |
1658 result = PREDICTION_RESULT_URL_BASED_WAS_BETTER; | 1658 result = PREDICTION_RESULT_URL_BASED_WAS_BETTER; |
1659 } | 1659 } |
1660 UMA_HISTOGRAM_ENUMERATION( | 1660 UMA_HISTOGRAM_ENUMERATION( |
1661 "Media.Android.IsHttpLiveStreamingMediaPredictionResult", | 1661 "Media.Android.IsHttpLiveStreamingMediaPredictionResult", |
1662 result, PREDICTION_RESULT_MAX); | 1662 result, PREDICTION_RESULT_MAX); |
1663 } | 1663 } |
1664 | 1664 |
1665 } // namespace content | 1665 } // namespace content |
OLD | NEW |