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

Side by Side Diff: base/sys_info.h

Issue 10113009: Set Android/V8 memory limits from dalvik.vm.heapsize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments, rebase Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « base/base.gypi ('k') | base/sys_info_android.cc » ('j') | no next file with comments »
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 #pragma once 7 #pragma once
8 8
9 #include "base/base_export.h" 9 #include "base/base_export.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Parses /etc/lsb-release to get version information for Google Chrome OS. 73 // Parses /etc/lsb-release to get version information for Google Chrome OS.
74 // Declared here so it can be exposed for unit testing. 74 // Declared here so it can be exposed for unit testing.
75 static void ParseLsbRelease(const std::string& lsb_release, 75 static void ParseLsbRelease(const std::string& lsb_release,
76 int32* major_version, 76 int32* major_version,
77 int32* minor_version, 77 int32* minor_version,
78 int32* bugfix_version); 78 int32* bugfix_version);
79 79
80 // Returns the path to the lsb-release file. 80 // Returns the path to the lsb-release file.
81 static FilePath GetLsbReleaseFilePath(); 81 static FilePath GetLsbReleaseFilePath();
82 #endif // defined(OS_CHROMEOS) 82 #endif // defined(OS_CHROMEOS)
83
84 #if defined(OS_ANDROID)
85 static int DalvikHeapSizeMB();
86 #endif // defined(OS_ANDROID)
83 }; 87 };
84 88
85 } // namespace base 89 } // namespace base
86 90
87 #endif // BASE_SYS_INFO_H_ 91 #endif // BASE_SYS_INFO_H_
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | base/sys_info_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698