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_HOOKS_H_ |
6 #define BASE_ANDROID_LIBRARY_LOADER_HOOKS_H_ | 6 #define BASE_ANDROID_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" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // version matches the version expected by Java before completing JNI | 55 // version matches the version expected by Java before completing JNI |
56 // registration. | 56 // registration. |
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 GetLibraryProcesssType(); | 65 BASE_EXPORT LibraryProcessType GetLibraryProcessType(JNIEnv* env); |
66 | 66 |
67 } // namespace android | 67 } // namespace android |
68 } // namespace base | 68 } // namespace base |
69 | 69 |
70 #endif // BASE_ANDROID_LIBRARY_LOADER_HOOKS_H_ | 70 #endif // BASE_ANDROID_LIBRARY_LOADER_HOOKS_H_ |
OLD | NEW |