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_LOAD_FROM_APK_STATUS_CODES_H_ | 5 #ifndef BASE_ANDROID_LIBRARY_LOAD_FROM_APK_STATUS_CODES_H_ |
6 #define BASE_ANDROID_LIBRARY_LOAD_FROM_APK_STATUS_CODES_H_ | 6 #define BASE_ANDROID_LIBRARY_LOAD_FROM_APK_STATUS_CODES_H_ |
7 | 7 |
8 namespace base { | 8 namespace base { |
9 namespace android { | 9 namespace android { |
10 | 10 |
11 namespace { | 11 namespace { |
12 | 12 |
13 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.base.library_loader | 13 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.base.library_loader |
14 enum LibraryLoadFromApkStatusCodes { | 14 enum LibraryLoadFromApkStatusCodes { |
15 // The loader was unable to determine whether the functionality is supported. | 15 // The loader was unable to determine whether the functionality is supported. |
16 LIBRARY_LOAD_FROM_APK_STATUS_CODES_UNKNOWN = 0, | 16 LIBRARY_LOAD_FROM_APK_STATUS_CODES_UNKNOWN = 0, |
17 | 17 |
18 // The device does not support loading a library directly from the APK file. | 18 // The device does not support loading a library directly from the APK file. |
19 LIBRARY_LOAD_FROM_APK_STATUS_CODES_NOT_SUPPORTED = 1, | 19 LIBRARY_LOAD_FROM_APK_STATUS_CODES_NOT_SUPPORTED = 1, |
20 | 20 |
21 // The device supports loading a library directly from the APK file. | 21 // The device supports loading a library directly from the APK file. |
22 LIBRARY_LOAD_FROM_APK_STATUS_CODES_SUPPORTED = 2, | 22 LIBRARY_LOAD_FROM_APK_STATUS_CODES_SUPPORTED = 2, |
23 | 23 |
24 // A library was successfully loaded directly from the APK file. | 24 // The Chromium library was successfully loaded directly from the APK file. |
25 LIBRARY_LOAD_FROM_APK_STATUS_CODES_SUCCESSFUL = 3, | 25 LIBRARY_LOAD_FROM_APK_STATUS_CODES_SUCCESSFUL = 3, |
26 | 26 |
| 27 // The Chromium library was not page aligned in the APK file. |
| 28 LIBRARY_LOAD_FROM_APK_STATUS_CODES_NOT_ALIGNED = 4, |
| 29 |
27 // End sentinel. | 30 // End sentinel. |
28 LIBRARY_LOAD_FROM_APK_STATUS_CODES_MAX = 4, | 31 LIBRARY_LOAD_FROM_APK_STATUS_CODES_MAX = 5, |
29 }; | 32 }; |
30 | 33 |
31 } // namespace | 34 } // namespace |
32 | 35 |
33 } // namespace android | 36 } // namespace android |
34 } // namespace base | 37 } // namespace base |
35 | 38 |
36 #endif // BASE_ANDROID_LIBRARY_LOAD_FROM_APK_STATUS_CODES_H_ | 39 #endif // BASE_ANDROID_LIBRARY_LOAD_FROM_APK_STATUS_CODES_H_ |
OLD | NEW |