Get foreground tab on Android
[chromium-blink-merge.git] / webkit / child / webkit_child_helpers.h
blob3262fa23138c999af64c762145c065f21eabf691
1 // Copyright (c) 2013 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.
5 #ifndef WEBKIT_CHILD_WEBKIT_CHILD_HELPERS_H_
6 #define WEBKIT_CHILD_WEBKIT_CHILD_HELPERS_H_
8 #include "base/basictypes.h"
9 #include "webkit/child/webkit_child_export.h"
11 namespace webkit_glue {
13 // Returns an estimate of the memory usage of the renderer process. Different
14 // platforms implement this function differently, and count in different
15 // allocations. Results are not comparable across platforms. The estimate is
16 // computed inside the sandbox and thus its not always accurate.
17 WEBKIT_CHILD_EXPORT size_t MemoryUsageKB();
19 } // webkit_glue
21 #endif // WEBKIT_CHILD_WEBKIT_CHILD_HELPERS_H_