OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | |
petrcermak
2016/01/28 09:55:05
nit: Drop "(c)" (https://www.chromium.org/develope
chrisha
2016/01/28 21:22:14
Done.
| |
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 CONTENT_PUBLIC_BROWSER_MEMORY_PRESSURE_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_MEMORY_PRESSURE_H_ | |
7 | |
8 #include "base/memory/memory_pressure_listener.h" | |
9 #include "content/common/content_export.h" | |
10 | |
11 namespace content { | |
12 | |
13 class BrowserChildProcessHost; | |
14 class MemoryMessageFilter; | |
Charlie Reis
2016/01/27 22:34:22
Why is this needed?
chrisha
2016/01/28 21:22:14
Oops.. cut and paste error. Not needed, and remove
| |
15 class RenderProcessHost; | |
16 | |
17 // Wrappers around singleton member functions in | |
18 // content/browser/memory/memory_pressure_controller. See that header for more | |
Charlie Reis
2016/01/27 22:34:23
nit: Add .h.
Also, there's no additional details
chrisha
2016/01/28 21:22:14
Added more comments.
| |
19 // details. These are exposed so that chrome/browser can interact with the | |
20 // content memory pressure subsystem. These may be called from any thread. | |
21 CONTENT_EXPORT void SendPressureNotification( | |
Charlie Reis
2016/01/27 22:34:22
I think it's generally preferred to have these in
chrisha
2016/01/28 21:22:14
I only mean to expose a few functions on MemoryPre
| |
22 const BrowserChildProcessHost* child_process_host, | |
23 base::MemoryPressureListener::MemoryPressureLevel level); | |
24 CONTENT_EXPORT void SendPressureNotification( | |
25 const RenderProcessHost* render_process_host, | |
26 base::MemoryPressureListener::MemoryPressureLevel level); | |
27 | |
28 } // namespace content | |
29 | |
30 #endif // CONTENT_PUBLIC_BROWSER_MEMORY_MEMORY_PRESSURE_H_ | |
OLD | NEW |