| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/offline_pages/background/network_quality_provider_stub.h" | 5 #include "components/offline_pages/core/background/network_quality_provider_stub
.h" |
| 6 | 6 |
| 7 namespace offline_pages { | 7 namespace offline_pages { |
| 8 | 8 |
| 9 const char kOfflineNQPKey[] = "OfflineNQP"; | 9 const char kOfflineNQPKey[] = "OfflineNQP"; |
| 10 | 10 |
| 11 NetworkQualityProviderStub::NetworkQualityProviderStub() | 11 NetworkQualityProviderStub::NetworkQualityProviderStub() |
| 12 : connection_type_( | 12 : connection_type_( |
| 13 net::EffectiveConnectionType::EFFECTIVE_CONNECTION_TYPE_3G) {} | 13 net::EffectiveConnectionType::EFFECTIVE_CONNECTION_TYPE_3G) {} |
| 14 | 14 |
| 15 NetworkQualityProviderStub::~NetworkQualityProviderStub() {} | 15 NetworkQualityProviderStub::~NetworkQualityProviderStub() {} |
| (...skipping 18 matching lines...) Expand all Loading... |
| 34 net::NetworkQualityEstimator::EffectiveConnectionTypeObserver* observer) {} | 34 net::NetworkQualityEstimator::EffectiveConnectionTypeObserver* observer) {} |
| 35 | 35 |
| 36 void NetworkQualityProviderStub::RemoveEffectiveConnectionTypeObserver( | 36 void NetworkQualityProviderStub::RemoveEffectiveConnectionTypeObserver( |
| 37 net::NetworkQualityEstimator::EffectiveConnectionTypeObserver* observer) {} | 37 net::NetworkQualityEstimator::EffectiveConnectionTypeObserver* observer) {} |
| 38 | 38 |
| 39 net::EffectiveConnectionType | 39 net::EffectiveConnectionType |
| 40 NetworkQualityProviderStub::GetEffectiveConnectionType() const { | 40 NetworkQualityProviderStub::GetEffectiveConnectionType() const { |
| 41 return connection_type_; | 41 return connection_type_; |
| 42 } | 42 } |
| 43 } // namespace offline_pages | 43 } // namespace offline_pages |
| OLD | NEW |