| 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 #ifndef COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_ | 5 #ifndef COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_ |
| 6 #define COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_ | 6 #define COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 class NetworkQualitiesPrefsManager; | 35 class NetworkQualitiesPrefsManager; |
| 36 class ProxyConfigService; | 36 class ProxyConfigService; |
| 37 class SdchOwner; | 37 class SdchOwner; |
| 38 class URLRequestContext; | 38 class URLRequestContext; |
| 39 class FileNetLogObserver; | 39 class FileNetLogObserver; |
| 40 } // namespace net | 40 } // namespace net |
| 41 | 41 |
| 42 namespace cronet { | 42 namespace cronet { |
| 43 class TestUtil; | 43 class TestUtil; |
| 44 | 44 |
| 45 #if defined(DATA_REDUCTION_PROXY_SUPPORT) | |
| 46 class CronetDataReductionProxy; | |
| 47 #endif | |
| 48 | |
| 49 struct URLRequestContextConfig; | 45 struct URLRequestContextConfig; |
| 50 | 46 |
| 51 bool CronetUrlRequestContextAdapterRegisterJni(JNIEnv* env); | 47 bool CronetUrlRequestContextAdapterRegisterJni(JNIEnv* env); |
| 52 | 48 |
| 53 // Adapter between Java CronetUrlRequestContext and net::URLRequestContext. | 49 // Adapter between Java CronetUrlRequestContext and net::URLRequestContext. |
| 54 class CronetURLRequestContextAdapter | 50 class CronetURLRequestContextAdapter |
| 55 : public net::NetworkQualityEstimator::EffectiveConnectionTypeObserver, | 51 : public net::NetworkQualityEstimator::EffectiveConnectionTypeObserver, |
| 56 public net::NetworkQualityEstimator::RTTAndThroughputEstimatesObserver, | 52 public net::NetworkQualityEstimator::RTTAndThroughputEstimatesObserver, |
| 57 public net::NetworkQualityEstimator::RTTObserver, | 53 public net::NetworkQualityEstimator::RTTObserver, |
| 58 public net::NetworkQualityEstimator::ThroughputObserver { | 54 public net::NetworkQualityEstimator::ThroughputObserver { |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 // A network quality estimator. | 244 // A network quality estimator. |
| 249 std::unique_ptr<net::NetworkQualityEstimator> network_quality_estimator_; | 245 std::unique_ptr<net::NetworkQualityEstimator> network_quality_estimator_; |
| 250 | 246 |
| 251 // Manages the writing and reading of the network quality prefs. | 247 // Manages the writing and reading of the network quality prefs. |
| 252 std::unique_ptr<net::NetworkQualitiesPrefsManager> | 248 std::unique_ptr<net::NetworkQualitiesPrefsManager> |
| 253 network_qualities_prefs_manager_; | 249 network_qualities_prefs_manager_; |
| 254 | 250 |
| 255 // Java object that owns this CronetURLRequestContextAdapter. | 251 // Java object that owns this CronetURLRequestContextAdapter. |
| 256 base::android::ScopedJavaGlobalRef<jobject> jcronet_url_request_context_; | 252 base::android::ScopedJavaGlobalRef<jobject> jcronet_url_request_context_; |
| 257 | 253 |
| 258 #if defined(DATA_REDUCTION_PROXY_SUPPORT) | |
| 259 std::unique_ptr<CronetDataReductionProxy> data_reduction_proxy_; | |
| 260 #endif | |
| 261 | |
| 262 DISALLOW_COPY_AND_ASSIGN(CronetURLRequestContextAdapter); | 254 DISALLOW_COPY_AND_ASSIGN(CronetURLRequestContextAdapter); |
| 263 }; | 255 }; |
| 264 | 256 |
| 265 } // namespace cronet | 257 } // namespace cronet |
| 266 | 258 |
| 267 #endif // COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_ | 259 #endif // COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_ |
| OLD | NEW |