| OLD | NEW |
| 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 initialization thread is started. |
| 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_ |
| OLD | NEW |