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

Side by Side Diff: base/android/build_info.h

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months 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 (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>
11 11
12 #include "base/base_export.h" 12 #include "base/base_export.h"
13 #include "base/memory/singleton.h" 13 #include "base/memory/singleton.h"
14 14
15 namespace base { 15 namespace base {
16 namespace android { 16 namespace android {
17 17
18 // This enumeration maps to the values returned by BuildInfo::sdk_int(),
19 // indicating the Android release associated with a given SDK version.
20 enum SdkVersion {
21 SDK_VERSION_ICE_CREAM_SANDWICH = 14,
22 SDK_VERSION_ICE_CREAM_SANDWICH_MR1 = 15,
23 SDK_VERSION_JELLY_BEAN = 16,
24 SDK_VERSION_JELLY_BEAN_MR1 = 17,
25 SDK_VERSION_JELLY_BEAN_MR2 = 18,
26 SDK_VERSION_KITKAT = 19,
27 SDK_VERSION_KITKAT_WEAR = 20,
28 SDK_VERSION_LOLLIPOP = 21
29 };
30
18 // BuildInfo is a singleton class that stores android build and device 31 // BuildInfo is a singleton class that stores android build and device
19 // information. It will be called from Android specific code and gets used 32 // information. It will be called from Android specific code and gets used
20 // primarily in crash reporting. 33 // primarily in crash reporting.
21 34
22 // It is also used to store the last java exception seen during JNI. 35 // It is also used to store the last java exception seen during JNI.
23 // TODO(nileshagrawal): Find a better place to store this info. 36 // TODO(nileshagrawal): Find a better place to store this info.
24 class BASE_EXPORT BuildInfo { 37 class BASE_EXPORT BuildInfo {
25 public: 38 public:
26 39
27 ~BuildInfo() {} 40 ~BuildInfo() {}
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // This is set via set_java_exception_info, not at constructor time. 129 // This is set via set_java_exception_info, not at constructor time.
117 const char* java_exception_info_; 130 const char* java_exception_info_;
118 131
119 DISALLOW_COPY_AND_ASSIGN(BuildInfo); 132 DISALLOW_COPY_AND_ASSIGN(BuildInfo);
120 }; 133 };
121 134
122 } // namespace android 135 } // namespace android
123 } // namespace base 136 } // namespace base
124 137
125 #endif // BASE_ANDROID_BUILD_INFO_H_ 138 #endif // BASE_ANDROID_BUILD_INFO_H_
OLDNEW
« no previous file with comments | « base/android/application_status_listener.cc ('k') | base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698