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

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: 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
« no previous file with comments | « no previous file | components/cronet/android/cronet_library_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5f5ece85e208c2c0bf971811555ea76fef66406a 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 initialization thread is started.
+bool OnInitThread();
+
} // namespace cronet
#endif // COMPONENTS_CRONET_ANDROID_CRONET_LIBRARY_LOADER_H_
« no previous file with comments | « no previous file | components/cronet/android/cronet_library_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698