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

Side by Side Diff: media/blink/webmediaplayer_impl.cc

Issue 1740483004: Rename enums/functions that collide in chromium style in core/html/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-5
Patch Set: get-names-6: . Created 4 years, 10 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 | « media/blink/webmediaplayer_impl.h ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('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 "media/blink/webmediaplayer_impl.h" 5 #include "media/blink/webmediaplayer_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <limits> 9 #include <limits>
10 #include <string> 10 #include <string>
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 } 635 }
636 #endif 636 #endif
637 637
638 if (paused_) { 638 if (paused_) {
639 return paused_time_.InSecondsF(); 639 return paused_time_.InSecondsF();
640 } 640 }
641 641
642 return pipeline_.GetMediaTime().InSecondsF(); 642 return pipeline_.GetMediaTime().InSecondsF();
643 } 643 }
644 644
645 WebMediaPlayer::NetworkState WebMediaPlayerImpl::networkState() const { 645 WebMediaPlayer::NetworkState WebMediaPlayerImpl::getNetworkState() const {
646 DCHECK(main_task_runner_->BelongsToCurrentThread()); 646 DCHECK(main_task_runner_->BelongsToCurrentThread());
647 return network_state_; 647 return network_state_;
648 } 648 }
649 649
650 WebMediaPlayer::ReadyState WebMediaPlayerImpl::readyState() const { 650 WebMediaPlayer::ReadyState WebMediaPlayerImpl::getReadyState() const {
651 DCHECK(main_task_runner_->BelongsToCurrentThread()); 651 DCHECK(main_task_runner_->BelongsToCurrentThread());
652 return ready_state_; 652 return ready_state_;
653 } 653 }
654 654
655 blink::WebTimeRanges WebMediaPlayerImpl::buffered() const { 655 blink::WebTimeRanges WebMediaPlayerImpl::buffered() const {
656 DCHECK(main_task_runner_->BelongsToCurrentThread()); 656 DCHECK(main_task_runner_->BelongsToCurrentThread());
657 657
658 Ranges<base::TimeDelta> buffered_time_ranges = 658 Ranges<base::TimeDelta> buffered_time_ranges =
659 pipeline_.GetBufferedTimeRanges(); 659 pipeline_.GetBufferedTimeRanges();
660 660
(...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after
1580 << ", Video: " << stats.video_memory_usage << ", DataSource: " 1580 << ", Video: " << stats.video_memory_usage << ", DataSource: "
1581 << (data_source_ ? data_source_->GetMemoryUsage() : 0) 1581 << (data_source_ ? data_source_->GetMemoryUsage() : 0)
1582 << ", Demuxer: " << demuxer_memory_usage; 1582 << ", Demuxer: " << demuxer_memory_usage;
1583 1583
1584 const int64_t delta = current_memory_usage - last_reported_memory_usage_; 1584 const int64_t delta = current_memory_usage - last_reported_memory_usage_;
1585 last_reported_memory_usage_ = current_memory_usage; 1585 last_reported_memory_usage_ = current_memory_usage;
1586 adjust_allocated_memory_cb_.Run(delta); 1586 adjust_allocated_memory_cb_.Run(delta);
1587 } 1587 }
1588 1588
1589 } // namespace media 1589 } // namespace media
OLDNEW
« no previous file with comments | « media/blink/webmediaplayer_impl.h ('k') | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698