| Index: components/cronet/android/cronet_url_request_context_adapter.h
|
| diff --git a/components/cronet/android/cronet_url_request_context_adapter.h b/components/cronet/android/cronet_url_request_context_adapter.h
|
| index b90874ab8dc82245e6caffd1cd4ed9ddbe46d612..e02586d5afe07d70bf8396543762176fba87b874 100644
|
| --- a/components/cronet/android/cronet_url_request_context_adapter.h
|
| +++ b/components/cronet/android/cronet_url_request_context_adapter.h
|
| @@ -18,6 +18,7 @@
|
| #include "base/memory/ref_counted.h"
|
| #include "base/threading/thread.h"
|
| #include "components/prefs/json_pref_store.h"
|
| +#include "net/base/address_list.h"
|
| #include "net/nqe/effective_connection_type.h"
|
| #include "net/nqe/network_quality_estimator.h"
|
| #include "net/nqe/network_quality_observation_source.h"
|
| @@ -133,6 +134,13 @@ class CronetURLRequestContextAdapter
|
| const base::android::JavaParamRef<jobject>& jcaller,
|
| bool should);
|
|
|
| + // Put an entry in the HostCache for a particular host.
|
| + void PutHostCache(JNIEnv* env,
|
| + const base::android::JavaParamRef<jobject>& jcaller,
|
| + const base::android::JavaParamRef<jstring>& jhostname,
|
| + const base::android::JavaParamRef<jobjectArray>& jaddresses,
|
| + jint jseconds_to_live);
|
| +
|
| private:
|
| friend class TestUtil;
|
|
|
| @@ -167,6 +175,9 @@ class CronetURLRequestContextAdapter
|
|
|
| void ProvideRTTObservationsOnNetworkThread(bool should);
|
| void ProvideThroughputObservationsOnNetworkThread(bool should);
|
| + void PutHostCacheOnNetworkThread(std::string hostname,
|
| + net::AddressList address_list,
|
| + base::TimeDelta ttl);
|
|
|
| // net::NetworkQualityEstimator::EffectiveConnectionTypeObserver
|
| // implementation.
|
|
|