Home | History | Annotate | Download | only in library_loader
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef BASE_ANDROID_LIBRARY_LOADER_LIBRARY_LOAD_FROM_APK_STATUS_CODES_H_
      6 #define BASE_ANDROID_LIBRARY_LOADER_LIBRARY_LOAD_FROM_APK_STATUS_CODES_H_
      7 
      8 namespace base {
      9 namespace android {
     10 
     11 namespace {
     12 
     13 // This enum must be kept in sync with the LibraryLoadFromApkStatus enum in
     14 // tools/metrics/histograms/histograms.xml.
     15 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.base.library_loader
     16 enum LibraryLoadFromApkStatusCodes {
     17   // The loader was unable to determine whether the functionality is supported.
     18   LIBRARY_LOAD_FROM_APK_STATUS_CODES_UNKNOWN = 0,
     19 
     20   // The device does not support loading a library directly from the APK file
     21   // (obsolete).
     22   LIBRARY_LOAD_FROM_APK_STATUS_CODES_NOT_SUPPORTED_OBSOLETE = 1,
     23 
     24   // The device supports loading a library directly from the APK file.
     25   // (obsolete).
     26   LIBRARY_LOAD_FROM_APK_STATUS_CODES_SUPPORTED_OBSOLETE = 2,
     27 
     28   // The Chromium library was successfully loaded directly from the APK file.
     29   LIBRARY_LOAD_FROM_APK_STATUS_CODES_SUCCESSFUL = 3,
     30 
     31   // The Chromium library was successfully loaded using the unpack library
     32   // fallback because it was compressed or not page aligned in the APK file.
     33   LIBRARY_LOAD_FROM_APK_STATUS_CODES_USED_UNPACK_LIBRARY_FALLBACK = 4,
     34 
     35   // The Chromium library was successfully loaded using the no map executable
     36   // support fallback (obsolete).
     37   LIBRARY_LOAD_FROM_APK_STATUS_CODES_USED_NO_MAP_EXEC_SUPPORT_FALLBACK_OBSOLETE
     38       = 5,
     39 
     40   // End sentinel.
     41   LIBRARY_LOAD_FROM_APK_STATUS_CODES_MAX = 6,
     42 };
     43 
     44 }  // namespace
     45 
     46 }  // namespace android
     47 }  // namespace base
     48 
     49 #endif  // BASE_ANDROID_LIBRARY_LOADER_LIBRARY_LOAD_FROM_APK_STATUS_CODES_H_
     50