Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(633)

Side by Side Diff: components/cronet/android/cronet_url_request_context_adapter.h

Issue 2029423004: QUIC/Cronet - Add Java glue layer to serialize and de-serialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert_serialize_0526
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 net::URLRequestContext* GetURLRequestContext(); 77 net::URLRequestContext* GetURLRequestContext();
78 78
79 void StartNetLogToFile(JNIEnv* env, 79 void StartNetLogToFile(JNIEnv* env,
80 const base::android::JavaParamRef<jobject>& jcaller, 80 const base::android::JavaParamRef<jobject>& jcaller,
81 const base::android::JavaParamRef<jstring>& jfile_name, 81 const base::android::JavaParamRef<jstring>& jfile_name,
82 jboolean jlog_all); 82 jboolean jlog_all);
83 83
84 void StopNetLog(JNIEnv* env, 84 void StopNetLog(JNIEnv* env,
85 const base::android::JavaParamRef<jobject>& jcaller); 85 const base::android::JavaParamRef<jobject>& jcaller);
86 86
87 void GetCertVerifierData(JNIEnv* env,
88 const base::android::JavaParamRef<jobject>& jcaller);
89
87 // Default net::LOAD flags used to create requests. 90 // Default net::LOAD flags used to create requests.
88 int default_load_flags() const { return default_load_flags_; } 91 int default_load_flags() const { return default_load_flags_; }
89 92
90 // Called on main Java thread to initialize URLRequestContext. 93 // Called on main Java thread to initialize URLRequestContext.
91 void InitRequestContextOnMainThread(); 94 void InitRequestContextOnMainThread();
92 95
93 // Enables the network quality estimator and optionally configures it to 96 // Enables the network quality estimator and optionally configures it to
94 // observe localhost requests, and to consider smaller responses when 97 // observe localhost requests, and to consider smaller responses when
95 // observing throughput. It is recommended that both options be set to false. 98 // observing throughput. It is recommended that both options be set to false.
96 void EnableNetworkQualityEstimator( 99 void EnableNetworkQualityEstimator(
(...skipping 25 matching lines...) Expand all
122 void RunTaskAfterContextInitOnNetworkThread( 125 void RunTaskAfterContextInitOnNetworkThread(
123 const base::Closure& task_to_run_after_context_init); 126 const base::Closure& task_to_run_after_context_init);
124 127
125 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() const; 128 scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner() const;
126 129
127 void StartNetLogToFileOnNetworkThread(const std::string& file_name, 130 void StartNetLogToFileOnNetworkThread(const std::string& file_name,
128 bool log_all); 131 bool log_all);
129 132
130 void StopNetLogOnNetworkThread(); 133 void StopNetLogOnNetworkThread();
131 134
135 void GetCertVerifierDataOnNetworkThread();
136
132 // Gets the file thread. Create one if there is none. 137 // Gets the file thread. Create one if there is none.
133 base::Thread* GetFileThread(); 138 base::Thread* GetFileThread();
134 139
135 // Instantiate and configure the network quality estimator. For default 140 // Instantiate and configure the network quality estimator. For default
136 // behavior, parameters should be set to false; otherwise the estimator 141 // behavior, parameters should be set to false; otherwise the estimator
137 // can be configured to observe requests to localhost, as well as to use 142 // can be configured to observe requests to localhost, as well as to use
138 // observe smaller responses when estimating throughput. 143 // observe smaller responses when estimating throughput.
139 void EnableNetworkQualityEstimatorOnNetworkThread( 144 void EnableNetworkQualityEstimatorOnNetworkThread(
140 bool use_local_host_requests, 145 bool use_local_host_requests,
141 bool use_smaller_responses); 146 bool use_smaller_responses);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 #if defined(DATA_REDUCTION_PROXY_SUPPORT) 199 #if defined(DATA_REDUCTION_PROXY_SUPPORT)
195 std::unique_ptr<CronetDataReductionProxy> data_reduction_proxy_; 200 std::unique_ptr<CronetDataReductionProxy> data_reduction_proxy_;
196 #endif 201 #endif
197 202
198 DISALLOW_COPY_AND_ASSIGN(CronetURLRequestContextAdapter); 203 DISALLOW_COPY_AND_ASSIGN(CronetURLRequestContextAdapter);
199 }; 204 };
200 205
201 } // namespace cronet 206 } // namespace cronet
202 207
203 #endif // COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_ 208 #endif // COMPONENTS_CRONET_ANDROID_CRONET_URL_REQUEST_CONTEXT_ADAPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698