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

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: 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 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 bool OnInitThread();
17
15 } // namespace cronet 18 } // namespace cronet
16 19
17 #endif // COMPONENTS_CRONET_ANDROID_CRONET_LIBRARY_LOADER_H_ 20 #endif // COMPONENTS_CRONET_ANDROID_CRONET_LIBRARY_LOADER_H_
OLDNEW
« no previous file with comments | « no previous file | components/cronet/android/cronet_library_loader.cc » ('j') | components/cronet/android/cronet_library_loader.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698