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

Side by Side Diff: webkit/glue/dalvik_heap_size_android.h

Issue 10113009: Set Android/V8 memory limits from dalvik.vm.heapsize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extract DalvikHeapSize 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef DALVIK_VM_HEAP_SIZE_ANDROID_H_
6 #define DALVIK_VM_HEAP_SIZE_ANDROID_H_
7
8 #include <string>
9
10 namespace webkit_glue {
darin (slow to review) 2012/05/14 16:23:49 nit: add a new line here
ulan 2012/05/15 12:44:03 Done.
11 // A simple class to cache the heap size of the device.
12 class DalvikHeapSize {
13 public:
14 // Retrieves the Singleton.
15 static DalvikHeapSize* GetInstance();
16
17 DalvikHeapSize();
18
19 ~DalvikHeapSize();
20
21 int HeapSizeMB() const;
22
23 private:
24 int ParseHeapSize(const std::string& str) const;
25 int heap_size_mb_;
26 };
27
28 } // webkit_glue namespace
29
30 #endif // DALVIK_VM_HEAP_SIZE_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/dalvik_heap_size_android.cc » ('j') | webkit/glue/webkitplatformsupport_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698