Index: base/android/library_loader/library_load_from_apk_status_codes.h |
diff --git a/base/android/library_loader/library_load_from_apk_status_codes.h b/base/android/library_loader/library_load_from_apk_status_codes.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d52c180e6980784a095a926da42a4dca1ee8b3f9 |
--- /dev/null |
+++ b/base/android/library_loader/library_load_from_apk_status_codes.h |
@@ -0,0 +1,25 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// This file intentionally does not have header guards, it's included |
+// inside a macro to generate enum and a java class for the values. |
+ |
+#ifndef DEFINE_LIBRARY_LOAD_FROM_APK_STATUS_CODE |
+#error "DEFINE_LIBRARY_LOAD_FROM_APK_STATUS_CODE should be defined." |
+#endif |
+ |
+// The loader was unable to determine whether the functionality is supported. |
+DEFINE_LIBRARY_LOAD_FROM_APK_STATUS_CODE(UNKNOWN, 0) |
+ |
+// The device does not support loading a library directly from the APK file. |
+DEFINE_LIBRARY_LOAD_FROM_APK_STATUS_CODE(NOT_SUPPORTED, 1) |
+ |
+// The device supports loading a library directly from the APK file. |
+DEFINE_LIBRARY_LOAD_FROM_APK_STATUS_CODE(SUPPORTED, 2) |
+ |
+// A library was successfully loaded directly from the APK file. |
+DEFINE_LIBRARY_LOAD_FROM_APK_STATUS_CODE(SUCCESSFUL, 3) |
+ |
+// End sentinel. |
+DEFINE_LIBRARY_LOAD_FROM_APK_STATUS_CODE(MAX, 4) |