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/core/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 |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 // static | 24 // static |
25 void NetworkQualityProviderStub::SetUserData( | 25 void NetworkQualityProviderStub::SetUserData( |
26 base::SupportsUserData* supports_user_data, | 26 base::SupportsUserData* supports_user_data, |
27 std::unique_ptr<NetworkQualityProviderStub> stub) { | 27 std::unique_ptr<NetworkQualityProviderStub> stub) { |
28 DCHECK(supports_user_data); | 28 DCHECK(supports_user_data); |
29 DCHECK(stub); | 29 DCHECK(stub); |
30 supports_user_data->SetUserData(&kOfflineNQPKey, std::move(stub)); | 30 supports_user_data->SetUserData(&kOfflineNQPKey, std::move(stub)); |
31 } | 31 } |
32 | 32 |
33 void NetworkQualityProviderStub::AddEffectiveConnectionTypeObserver( | |
34 net::NetworkQualityEstimator::EffectiveConnectionTypeObserver* observer) {} | |
35 | |
36 void NetworkQualityProviderStub::RemoveEffectiveConnectionTypeObserver( | |
37 net::NetworkQualityEstimator::EffectiveConnectionTypeObserver* observer) {} | |
38 | |
39 void NetworkQualityProviderStub::AddRTTAndThroughputEstimatesObserver( | |
40 net::NetworkQualityEstimator::RTTAndThroughputEstimatesObserver* observer) { | |
41 } | |
42 | |
43 void NetworkQualityProviderStub::RemoveRTTAndThroughputEstimatesObserver( | |
44 net::NetworkQualityEstimator::RTTAndThroughputEstimatesObserver* observer) { | |
45 } | |
46 | |
47 net::EffectiveConnectionType | 33 net::EffectiveConnectionType |
48 NetworkQualityProviderStub::GetEffectiveConnectionType() const { | 34 NetworkQualityProviderStub::GetEffectiveConnectionType() const { |
49 return connection_type_; | 35 return connection_type_; |
50 } | 36 } |
51 } // namespace offline_pages | 37 } // namespace offline_pages |
OLD | NEW |