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

Unified Diff: components/cronet/android/cronet_url_request_context_adapter.h

Issue 2812963002: [Cronet] Move initialization to a new thread rather than the UI thread. (Closed)
Patch Set: mostly renaming Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
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 664c8f39689fc10a974aafd5083c91cb26c7b420..b9a4796acbb3a1c83a27f0770b8c63eccd6a266f 100644
--- a/components/cronet/android/cronet_url_request_context_adapter.h
+++ b/components/cronet/android/cronet_url_request_context_adapter.h
@@ -62,8 +62,8 @@ class CronetURLRequestContextAdapter
~CronetURLRequestContextAdapter() override;
- // Called on main Java thread to initialize URLRequestContext.
- void InitRequestContextOnMainThread(
+ // Called on init Java thread to initialize URLRequestContext.
+ void InitRequestContextOnInitThread(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& jcaller);
@@ -111,8 +111,8 @@ class CronetURLRequestContextAdapter
// Default net::LOAD flags used to create requests.
int default_load_flags() const { return default_load_flags_; }
- // Called on main Java thread to initialize URLRequestContext.
- void InitRequestContextOnMainThread();
+ // Called on init Java thread to initialize URLRequestContext.
+ void InitRequestContextOnInitThread();
// Configures the network quality estimator to observe requests to localhost,
// to use smaller responses when estimating throughput, and to disable the

Powered by Google App Engine
This is Rietveld 408576698