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 BASE_ANDROID_LIBRARY_LOADER_HOOKS_H_ | 5 #ifndef BASE_ANDROID_LIBRARY_LOADER_LIBRARY_LOADER_HOOKS_H_ |
6 #define BASE_ANDROID_LIBRARY_LOADER_HOOKS_H_ | 6 #define BASE_ANDROID_LIBRARY_LOADER_LIBRARY_LOADER_HOOKS_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
11 | 11 |
12 namespace base { | 12 namespace base { |
13 namespace android { | 13 namespace android { |
14 | 14 |
15 // The process the shared library is loaded in. | 15 // The process the shared library is loaded in. |
16 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.base.library_loader | 16 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.base.library_loader |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Note: argument must remain valid at least until library loading is complete. | 57 // Note: argument must remain valid at least until library loading is complete. |
58 BASE_EXPORT void SetVersionNumber(const char* version_number); | 58 BASE_EXPORT void SetVersionNumber(const char* version_number); |
59 | 59 |
60 // Call on exit to delete the AtExitManager which OnLibraryLoadedOnUIThread | 60 // Call on exit to delete the AtExitManager which OnLibraryLoadedOnUIThread |
61 // created. | 61 // created. |
62 BASE_EXPORT void LibraryLoaderExitHook(); | 62 BASE_EXPORT void LibraryLoaderExitHook(); |
63 | 63 |
64 // Return the process type the shared library is loaded in. | 64 // Return the process type the shared library is loaded in. |
65 BASE_EXPORT LibraryProcessType GetLibraryProcessType(JNIEnv* env); | 65 BASE_EXPORT LibraryProcessType GetLibraryProcessType(JNIEnv* env); |
66 | 66 |
| 67 // Initialize AtExitManager, this must be done at the begining of loading |
| 68 // shared library. |
| 69 void InitAtExitManager(); |
| 70 |
67 } // namespace android | 71 } // namespace android |
68 } // namespace base | 72 } // namespace base |
69 | 73 |
70 #endif // BASE_ANDROID_LIBRARY_LOADER_HOOKS_H_ | 74 #endif // BASE_ANDROID_LIBRARY_LOADER_LIBRARY_LOADER_HOOKS_H_ |
OLD | NEW |