OLD | NEW |
---|---|
(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 CONTENT_PUBLIC_BROWSER_PROCESS_RESOURCE_USAGE_H_ | |
6 #define CONTENT_PUBLIC_BROWSER_PROCESS_RESOURCE_USAGE_H_ | |
7 | |
8 #include "base/memory/ref_counted.h" | |
9 #include "content/common/content_export.h" | |
10 #include "content/public/browser/browser_thread.h" | |
11 | |
12 namespace content { | |
13 | |
14 // Provides resource usage information about a child process. | |
15 class CONTENT_EXPORT ProcessResourceUsage | |
16 : public base::RefCountedThreadSafe<ProcessResourceUsage> { | |
17 public: | |
18 // Refresh the resource usage information. | |
19 virtual void Refresh() = 0; | |
ncarter (slow)
2015/05/01 21:16:52
A question for afakhry:
Will you (with the rewrit
afakhry
2015/05/04 20:30:03
I prefer to have the (ChildProcess/Renderer)Tasks
Anand Mistry (off Chromium)
2015/05/05 04:11:21
It's not here because it's not necessary for this
| |
20 | |
21 // Get V8 memory usage information. | |
22 virtual bool ReportsV8MemoryStats() const = 0; | |
23 virtual size_t GetV8MemoryAllocated() const = 0; | |
24 virtual size_t GetV8MemoryUsed() const = 0; | |
25 | |
26 protected: | |
27 friend class base::RefCountedThreadSafe<ProcessResourceUsage>; | |
28 virtual ~ProcessResourceUsage() {} | |
29 }; | |
30 | |
31 } // namespace content | |
32 | |
33 #endif // CONTENT_PUBLIC_BROWSER_PROCESS_RESOURCE_USAGE_H_ | |
OLD | NEW |