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

Side by Side 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, 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 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_LIBRARY_LOADER_H_ 5 #ifndef COMPONENTS_CRONET_ANDROID_CRONET_LIBRARY_LOADER_H_
6 #define COMPONENTS_CRONET_ANDROID_CRONET_LIBRARY_LOADER_H_ 6 #define COMPONENTS_CRONET_ANDROID_CRONET_LIBRARY_LOADER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 namespace cronet { 10 namespace cronet {
11 11
12 jint CronetOnLoad(JavaVM* vm, void* reserved); 12 jint CronetOnLoad(JavaVM* vm, void* reserved);
13 void CronetOnUnLoad(JavaVM* jvm, void* reserved); 13 void CronetOnUnLoad(JavaVM* jvm, void* reserved);
14 14
15 // Returns true when running on initialization thread.
16 // 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.
17 bool OnInitThread();
18
15 } // namespace cronet 19 } // namespace cronet
16 20
17 #endif // COMPONENTS_CRONET_ANDROID_CRONET_LIBRARY_LOADER_H_ 21 #endif // COMPONENTS_CRONET_ANDROID_CRONET_LIBRARY_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698