From c5da5713830e1c6ad09c75638e06f018396ca40d Mon Sep 17 00:00:00 2001 From: mef Date: Tue, 9 Feb 2016 12:14:23 -0800 Subject: [Cronet] Expose quic_user_agent_id and quic_prefer_aes config options. - QUIC will soon require that user agent id field is non-empty, but normal User-Agent request header is too rich and verbose to be used for this purpose. The app can override default value using 'user_agent_id' quic experimental option. - prefer_aes experimental option is needed to experiment with performance of using AES instead of ChaCha20. BUG=575771 Review URL: https://codereview.chromium.org/1665503002 Cr-Commit-Position: refs/heads/master@{#374438} --- components/cronet/android/cronet_url_request_context_adapter.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'components/cronet/android/cronet_url_request_context_adapter.cc') diff --git a/components/cronet/android/cronet_url_request_context_adapter.cc b/components/cronet/android/cronet_url_request_context_adapter.cc index 49ba22a..776fec7 100644 --- a/components/cronet/android/cronet_url_request_context_adapter.cc +++ b/components/cronet/android/cronet_url_request_context_adapter.cc @@ -687,6 +687,7 @@ static jlong CreateRequestContextConfig( const JavaParamRef& juser_agent, const JavaParamRef& jstorage_path, jboolean jquic_enabled, + const JavaParamRef& jquic_default_user_agent_id, jboolean jhttp2_enabled, jboolean jsdch_enabled, const JavaParamRef& jdata_reduction_proxy_key, @@ -699,7 +700,9 @@ static jlong CreateRequestContextConfig( const JavaParamRef& jexperimental_quic_connection_options, jlong jmock_cert_verifier) { return reinterpret_cast(new URLRequestContextConfig( - jquic_enabled, jhttp2_enabled, jsdch_enabled, + jquic_enabled, + base::android::ConvertJavaStringToUTF8(env, jquic_default_user_agent_id), + jhttp2_enabled, jsdch_enabled, static_cast(jhttp_cache_mode), jhttp_cache_max_size, jdisable_cache, base::android::ConvertJavaStringToUTF8(env, jstorage_path), -- cgit v1.1