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

Side by Side Diff: base/sys_info.h

Issue 10832235: Move Android user agent generation to native code (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Moved Android OS info function over to webkit_glue Created 8 years, 4 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
« no previous file with comments | « no previous file | base/sys_info_android.cc » ('j') | base/sys_info_android.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SYS_INFO_H_ 5 #ifndef BASE_SYS_INFO_H_
6 #define BASE_SYS_INFO_H_ 6 #define BASE_SYS_INFO_H_
7 7
8 #include "base/base_export.h" 8 #include "base/base_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 static void ParseLsbRelease(const std::string& lsb_release, 74 static void ParseLsbRelease(const std::string& lsb_release,
75 int32* major_version, 75 int32* major_version,
76 int32* minor_version, 76 int32* minor_version,
77 int32* bugfix_version); 77 int32* bugfix_version);
78 78
79 // Returns the path to the lsb-release file. 79 // Returns the path to the lsb-release file.
80 static FilePath GetLsbReleaseFilePath(); 80 static FilePath GetLsbReleaseFilePath();
81 #endif // defined(OS_CHROMEOS) 81 #endif // defined(OS_CHROMEOS)
82 82
83 #if defined(OS_ANDROID) 83 #if defined(OS_ANDROID)
84 // Returns the Android build's codename.
85 static std::string GetAndroidBuildCodename();
86
87 // Returns the Android build ID.
88 static std::string GetAndroidBuildID();
89
90 // Returns the device's name.
91 static std::string GetDeviceName();
92
84 static int DalvikHeapSizeMB(); 93 static int DalvikHeapSizeMB();
85 #endif // defined(OS_ANDROID) 94 #endif // defined(OS_ANDROID)
95
96 // Default version of Android to fall back to when actual version numbers
97 // cannot be acquired.
98 // TODO(dfalcantara): Keep this reasonably up to date with the latest publicly
99 // available version of Android.
100 static const int kDefaultAndroidMajorVersion = 4;
101 static const int kDefaultAndroidMinorVersion = 0;
102 static const int kDefaultAndroidBugfixVersion = 3;
jar (doing other things) 2012/08/15 23:35:17 Why isn't this stuff inside the OS_ANDROID ifdef?
gone 2012/08/16 00:29:31 Supposed to be used for spoofing later; I can move
86 }; 103 };
87 104
88 } // namespace base 105 } // namespace base
89 106
90 #endif // BASE_SYS_INFO_H_ 107 #endif // BASE_SYS_INFO_H_
OLDNEW
« no previous file with comments | « no previous file | base/sys_info_android.cc » ('j') | base/sys_info_android.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698