| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chromecast/media/cma/base/buffering_controller.h" | 5 #include "chromecast/media/cma/base/buffering_controller.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/message_loop/message_loop_proxy.h" | 9 #include "base/message_loop/message_loop_proxy.h" |
| 10 #include "chromecast/base/metrics/cast_metrics_helper.h" | 10 #include "chromecast/base/metrics/cast_metrics_helper.h" |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 it != stream_list_.end(); ++it) { | 190 it != stream_list_.end(); ++it) { |
| 191 BufferingState::State stream_state = (*it)->GetState(); | 191 BufferingState::State stream_state = (*it)->GetState(); |
| 192 if (stream_state == BufferingState::kLowLevel) | 192 if (stream_state == BufferingState::kLowLevel) |
| 193 return true; | 193 return true; |
| 194 } | 194 } |
| 195 | 195 |
| 196 return false; | 196 return false; |
| 197 } | 197 } |
| 198 | 198 |
| 199 void BufferingController::DumpState() const { | 199 void BufferingController::DumpState() const { |
| 200 CMALOG(kLogControl) << __FUNCTION__; | |
| 201 for (StreamList::const_iterator it = stream_list_.begin(); | 200 for (StreamList::const_iterator it = stream_list_.begin(); |
| 202 it != stream_list_.end(); ++it) { | 201 it != stream_list_.end(); ++it) { |
| 203 CMALOG(kLogControl) << (*it)->ToString(); | 202 CMALOG(kLogControl) << (*it)->ToString(); |
| 204 } | 203 } |
| 205 } | 204 } |
| 206 | 205 |
| 207 } // namespace media | 206 } // namespace media |
| 208 } // namespace chromecast | 207 } // namespace chromecast |
| OLD | NEW |