| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "chrome/browser/media/router/discovery/dial/dial_media_sink_service_imp
l.h" | 5 #include "chrome/browser/media/router/discovery/dial/dial_media_sink_service_imp
l.h" |
| 6 | 6 |
| 7 #include "chrome/browser/media/router/discovery/dial/dial_device_data.h" | 7 #include "chrome/browser/media/router/discovery/dial/dial_device_data.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
| 10 #include "net/url_request/url_request_context_getter.h" | 10 #include "net/url_request/url_request_context_getter.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 MediaSinkServiceBase::RestartTimer(); | 122 MediaSinkServiceBase::RestartTimer(); |
| 123 } | 123 } |
| 124 | 124 |
| 125 void DialMediaSinkServiceImpl::OnDeviceDescriptionError( | 125 void DialMediaSinkServiceImpl::OnDeviceDescriptionError( |
| 126 const DialDeviceData& device, | 126 const DialDeviceData& device, |
| 127 const std::string& error_message) { | 127 const std::string& error_message) { |
| 128 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 128 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 129 DVLOG(2) << "OnDescriptionFetchesError [message]: " << error_message; | 129 DVLOG(2) << "OnDescriptionFetchesError [message]: " << error_message; |
| 130 } | 130 } |
| 131 | 131 |
| 132 void DialMediaSinkServiceImpl::RecordDeviceCounts() { |
| 133 metrics_.RecordDialDeviceCounts(current_sinks_.size(), |
| 134 current_devices_.size()); |
| 135 } |
| 136 |
| 132 } // namespace media_router | 137 } // namespace media_router |
| OLD | NEW |