| 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 205 |
| 206 // Stops NetLog logging on the network thread. | 206 // Stops NetLog logging on the network thread. |
| 207 void StopNetLogOnNetworkThread(); | 207 void StopNetLogOnNetworkThread(); |
| 208 | 208 |
| 209 // Callback for StopObserving() that unblocks the Java ConditionVariable and | 209 // Callback for StopObserving() that unblocks the Java ConditionVariable and |
| 210 // signals that it is safe to access the NetLog files. | 210 // signals that it is safe to access the NetLog files. |
| 211 void StopNetLogCompleted(); | 211 void StopNetLogCompleted(); |
| 212 | 212 |
| 213 std::unique_ptr<base::DictionaryValue> GetNetLogInfo() const; | 213 std::unique_ptr<base::DictionaryValue> GetNetLogInfo() const; |
| 214 | 214 |
| 215 // Initializes Network Quality Estimator (NQE) prefs manager on network |
| 216 // thread. |
| 217 void InitializeNQEPrefsOnNetworkThread() const; |
| 218 |
| 215 // Network thread is owned by |this|, but is destroyed from java thread. | 219 // Network thread is owned by |this|, but is destroyed from java thread. |
| 216 base::Thread* network_thread_; | 220 base::Thread* network_thread_; |
| 217 | 221 |
| 218 // File thread should be destroyed last. | 222 // File thread should be destroyed last. |
| 219 std::unique_ptr<base::Thread> file_thread_; | 223 std::unique_ptr<base::Thread> file_thread_; |
| 220 | 224 |
| 221 std::unique_ptr<net::FileNetLogObserver> net_log_file_observer_; | 225 std::unique_ptr<net::FileNetLogObserver> net_log_file_observer_; |
| 222 | 226 |
| 223 // |pref_service_| should outlive the HttpServerPropertiesManager owned by | 227 // |pref_service_| should outlive the HttpServerPropertiesManager owned by |
| 224 // |context_| and the HostCachePersistenceManager. | 228 // |context_| and the HostCachePersistenceManager. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 262 |
| 259 // Java object that owns this CronetURLRequestContextAdapter. | 263 // Java object that owns this CronetURLRequestContextAdapter. |
| 260 base::android::ScopedJavaGlobalRef<jobject> jcronet_url_request_context_; | 264 base::android::ScopedJavaGlobalRef<jobject> jcronet_url_request_context_; |
| 261 | 265 |
| 262 DISALLOW_COPY_AND_ASSIGN(CronetURLRequestContextAdapter); | 266 DISALLOW_COPY_AND_ASSIGN(CronetURLRequestContextAdapter); |
| 263 }; | 267 }; |
| 264 | 268 |
| 265 } // namespace cronet | 269 } // namespace cronet |
| 266 | 270 |
| 267 #endif // COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_ | 271 #endif // COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_ |
| OLD | NEW |