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

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

Issue 2812963002: [Cronet] Move initialization to a new thread rather than the UI thread. (Closed)
Patch Set: sync 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_library_loader.h
diff --git a/components/cronet/android/cronet_library_loader.h b/components/cronet/android/cronet_library_loader.h
index 7e3ab3dff2a5c8495497faadda435b3048de6c3d..f15cc76a97c45fdc030efdf697687b5769f1e3ea 100644
--- a/components/cronet/android/cronet_library_loader.h
+++ b/components/cronet/android/cronet_library_loader.h
@@ -12,6 +12,10 @@ namespace cronet {
jint CronetOnLoad(JavaVM* vm, void* reserved);
void CronetOnUnLoad(JavaVM* jvm, void* reserved);
+// Returns true when running on initialization thread.
+// Only callable after initiailization thread is started.
xunjieli 2017/05/02 14:59:16 nit: typo in initialization.
pauljensen 2017/05/02 20:35:55 Done.
+bool OnInitThread();
+
} // namespace cronet
#endif // COMPONENTS_CRONET_ANDROID_CRONET_LIBRARY_LOADER_H_

Powered by Google App Engine
This is Rietveld 408576698