Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: base/android/library_loader/library_load_from_apk_status_codes.h

Issue 684453003: Add UMA for testing whether the Chromium library was page aligned in the APK file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update for review feedback Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « base/android/java/src/org/chromium/base/library_loader/Linker.java ('k') | base/android/linker/linker_jni.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698