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_apk_splits() const { | 99 int has_language_apk_splits() const { |
100 return has_apk_splits_; | 100 return has_language_apk_splits_; |
101 } | 101 } |
102 | 102 |
103 const char* java_exception_info() const { | 103 const char* java_exception_info() const { |
104 return java_exception_info_; | 104 return java_exception_info_; |
105 } | 105 } |
106 | 106 |
107 void SetJavaExceptionInfo(const std::string& info); | 107 void SetJavaExceptionInfo(const std::string& info); |
108 | 108 |
109 void ClearJavaExceptionInfo(); | 109 void ClearJavaExceptionInfo(); |
110 | 110 |
(...skipping 13 matching lines...) Expand all Loading... |
124 const char* const model_; | 124 const char* const model_; |
125 const char* const brand_; | 125 const char* const brand_; |
126 const char* const android_build_id_; | 126 const char* const android_build_id_; |
127 const char* const android_build_fp_; | 127 const char* const android_build_fp_; |
128 const char* const package_version_code_; | 128 const char* const package_version_code_; |
129 const char* const package_version_name_; | 129 const char* const package_version_name_; |
130 const char* const package_label_; | 130 const char* const package_label_; |
131 const char* const package_name_; | 131 const char* const package_name_; |
132 const char* const build_type_; | 132 const char* const build_type_; |
133 const int sdk_int_; | 133 const int sdk_int_; |
134 const bool has_apk_splits_; | 134 const bool has_language_apk_splits_; |
135 // This is set via set_java_exception_info, not at constructor time. | 135 // This is set via set_java_exception_info, not at constructor time. |
136 const char* java_exception_info_; | 136 const char* java_exception_info_; |
137 | 137 |
138 DISALLOW_COPY_AND_ASSIGN(BuildInfo); | 138 DISALLOW_COPY_AND_ASSIGN(BuildInfo); |
139 }; | 139 }; |
140 | 140 |
141 } // namespace android | 141 } // namespace android |
142 } // namespace base | 142 } // namespace base |
143 | 143 |
144 #endif // BASE_ANDROID_BUILD_INFO_H_ | 144 #endif // BASE_ANDROID_BUILD_INFO_H_ |
OLD | NEW |