| 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/metrics/network_quality_estimator_provider_impl.h" | 5 #include "chrome/browser/metrics/network_quality_estimator_provider_impl.h" |
| 6 | 6 |
| 7 #include "base/sequenced_task_runner.h" |
| 7 #include "chrome/browser/io_thread.h" | 8 #include "chrome/browser/io_thread.h" |
| 8 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
| 9 | 10 |
| 10 namespace net { | 11 namespace net { |
| 11 class NetworkQualityEstimator; | 12 class NetworkQualityEstimator; |
| 12 } | 13 } |
| 13 | 14 |
| 14 namespace metrics { | 15 namespace metrics { |
| 15 | 16 |
| 16 NetworkQualityEstimatorProviderImpl::NetworkQualityEstimatorProviderImpl( | 17 NetworkQualityEstimatorProviderImpl::NetworkQualityEstimatorProviderImpl( |
| (...skipping 16 matching lines...) Expand all Loading... |
| 33 } | 34 } |
| 34 | 35 |
| 35 net::NetworkQualityEstimator* | 36 net::NetworkQualityEstimator* |
| 36 NetworkQualityEstimatorProviderImpl::GetNetworkQualityEstimator() { | 37 NetworkQualityEstimatorProviderImpl::GetNetworkQualityEstimator() { |
| 37 DCHECK(thread_checker_.CalledOnValidThread()); | 38 DCHECK(thread_checker_.CalledOnValidThread()); |
| 38 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); | 39 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::IO)); |
| 39 return io_thread_->globals()->network_quality_estimator.get(); | 40 return io_thread_->globals()->network_quality_estimator.get(); |
| 40 } | 41 } |
| 41 | 42 |
| 42 } // namespace metrics | 43 } // namespace metrics |
| OLD | NEW |