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

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

Issue 1124763003: Update from https://crrev.com/327068 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: update nacl, buildtools, fix display_change_notifier_unittest Created 5 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
OLDNEW
(Empty)
1 // Copyright 2015 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 BASE_ANDROID_JAVA_RUNTIME_H
6 #define BASE_ANDROID_JAVA_RUNTIME_H
7
8 #include "base/android/scoped_java_ref.h"
9 #include "base/base_export.h"
10
11 namespace base {
12 namespace android {
13
14 // Wrapper class for using the java.lang.Runtime object from jni.
15 class BASE_EXPORT JavaRuntime {
16 public:
17 // Registers the jni class (once per process).
18 static bool Register(JNIEnv* env);
19
20 // Fills the total memory used and memory allocated for objects by the java
21 // heap in the current process. Returns true on success.
22 static void GetMemoryUsage(long* total_memory, long* free_memory);
23 };
24
25 } // namespace android
26 } // namespace base
27
28 #endif // BASE_ANDROID_JAVA_RUNTIME_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698