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_LIBRARY_LOADER_HOOKS_H_ | 5 #ifndef BASE_ANDROID_LIBRARY_LOADER_LIBRARY_LOADER_HOOKS_H_ |
6 #define BASE_ANDROID_LIBRARY_LOADER_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 #include "base/callback.h" | 11 #include "base/callback.h" |
12 | 12 |
13 namespace base { | 13 namespace base { |
14 namespace android { | 14 namespace android { |
15 | 15 |
| 16 // TODO(estevenson): Get rid of LibraryProcessType once it isn't used for JNI |
| 17 // registration. |
16 // The process the shared library is loaded in. | 18 // The process the shared library is loaded in. |
17 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.base.library_loader | 19 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.base.library_loader |
18 enum LibraryProcessType { | 20 enum LibraryProcessType { |
19 // The LibraryLoad has not been initialized. | 21 // The LibraryLoad has not been initialized. |
20 PROCESS_UNINITIALIZED = 0, | 22 PROCESS_UNINITIALIZED = 0, |
21 // Shared library is running in browser process. | 23 // Shared library is running in browser process. |
22 PROCESS_BROWSER = 1, | 24 PROCESS_BROWSER = 1, |
23 // Shared library is running in child process. | 25 // Shared library is running in child process. |
24 PROCESS_CHILD = 2, | 26 PROCESS_CHILD = 2, |
25 // Shared library is running in the app that uses webview. | 27 // Shared library is running in the app that uses webview. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 BASE_EXPORT LibraryProcessType GetLibraryProcessType(JNIEnv* env); | 76 BASE_EXPORT LibraryProcessType GetLibraryProcessType(JNIEnv* env); |
75 | 77 |
76 // Initialize AtExitManager, this must be done at the begining of loading | 78 // Initialize AtExitManager, this must be done at the begining of loading |
77 // shared library. | 79 // shared library. |
78 void InitAtExitManager(); | 80 void InitAtExitManager(); |
79 | 81 |
80 } // namespace android | 82 } // namespace android |
81 } // namespace base | 83 } // namespace base |
82 | 84 |
83 #endif // BASE_ANDROID_LIBRARY_LOADER_LIBRARY_LOADER_HOOKS_H_ | 85 #endif // BASE_ANDROID_LIBRARY_LOADER_LIBRARY_LOADER_HOOKS_H_ |
OLD | NEW |