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

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: update tests to account for mRegistered change Created 3 years, 7 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 666af1a7e31bd963b89e56428ee2a5f7cd85da1a..b90874ab8dc82245e6caffd1cd4ed9ddbe46d612 100644
--- a/components/cronet/android/cronet_url_request_context_adapter.h
+++ b/components/cronet/android/cronet_url_request_context_adapter.h
@@ -58,8 +58,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);
@@ -107,8 +107,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
« no previous file with comments | « components/cronet/android/cronet_library_loader.cc ('k') | components/cronet/android/cronet_url_request_context_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698