| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BUILD_INFO_H_ | 5 #ifndef BASE_ANDROID_BUILD_INFO_H_ |
| 6 #define BASE_ANDROID_BUILD_INFO_H_ | 6 #define BASE_ANDROID_BUILD_INFO_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 } | 89 } |
| 90 | 90 |
| 91 const char* build_type() const { | 91 const char* build_type() const { |
| 92 return build_type_; | 92 return build_type_; |
| 93 } | 93 } |
| 94 | 94 |
| 95 int sdk_int() const { | 95 int sdk_int() const { |
| 96 return sdk_int_; | 96 return sdk_int_; |
| 97 } | 97 } |
| 98 | 98 |
| 99 int has_language_apk_splits() const { return has_language_apk_splits_; } |
| 100 |
| 99 const char* java_exception_info() const { | 101 const char* java_exception_info() const { |
| 100 return java_exception_info_; | 102 return java_exception_info_; |
| 101 } | 103 } |
| 102 | 104 |
| 103 void SetJavaExceptionInfo(const std::string& info); | 105 void SetJavaExceptionInfo(const std::string& info); |
| 104 | 106 |
| 105 void ClearJavaExceptionInfo(); | 107 void ClearJavaExceptionInfo(); |
| 106 | 108 |
| 107 static bool RegisterBindings(JNIEnv* env); | 109 static bool RegisterBindings(JNIEnv* env); |
| 108 | 110 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 120 const char* const model_; | 122 const char* const model_; |
| 121 const char* const brand_; | 123 const char* const brand_; |
| 122 const char* const android_build_id_; | 124 const char* const android_build_id_; |
| 123 const char* const android_build_fp_; | 125 const char* const android_build_fp_; |
| 124 const char* const package_version_code_; | 126 const char* const package_version_code_; |
| 125 const char* const package_version_name_; | 127 const char* const package_version_name_; |
| 126 const char* const package_label_; | 128 const char* const package_label_; |
| 127 const char* const package_name_; | 129 const char* const package_name_; |
| 128 const char* const build_type_; | 130 const char* const build_type_; |
| 129 const int sdk_int_; | 131 const int sdk_int_; |
| 132 const bool has_language_apk_splits_; |
| 130 // This is set via set_java_exception_info, not at constructor time. | 133 // This is set via set_java_exception_info, not at constructor time. |
| 131 const char* java_exception_info_; | 134 const char* java_exception_info_; |
| 132 | 135 |
| 133 DISALLOW_COPY_AND_ASSIGN(BuildInfo); | 136 DISALLOW_COPY_AND_ASSIGN(BuildInfo); |
| 134 }; | 137 }; |
| 135 | 138 |
| 136 } // namespace android | 139 } // namespace android |
| 137 } // namespace base | 140 } // namespace base |
| 138 | 141 |
| 139 #endif // BASE_ANDROID_BUILD_INFO_H_ | 142 #endif // BASE_ANDROID_BUILD_INFO_H_ |
| OLD | NEW |