OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_PROCESS_RESOURCE_USAGE_H_ | 5 #ifndef CHROME_BROWSER_PROCESS_RESOURCE_USAGE_H_ |
6 #define CHROME_BROWSER_PROCESS_RESOURCE_USAGE_H_ | 6 #define CHROME_BROWSER_PROCESS_RESOURCE_USAGE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
15 #include "chrome/common/resource_usage_reporter.mojom.h" | 15 #include "chrome/common/resource_usage_reporter.mojom.h" |
16 #include "third_party/WebKit/public/web/WebCache.h" | 16 #include "third_party/WebKit/public/platform/WebCache.h" |
17 | 17 |
18 // Provides resource usage information about a child process. | 18 // Provides resource usage information about a child process. |
19 // | 19 // |
20 // This is a wrapper around the chrome::mojom::ResourceUsageReporter Mojo | 20 // This is a wrapper around the chrome::mojom::ResourceUsageReporter Mojo |
21 // service that exposes | 21 // service that exposes |
22 // information about resources used by a child process. Currently, this is only | 22 // information about resources used by a child process. Currently, this is only |
23 // V8 memory and Blink resource cache usage, but could be expanded to include | 23 // V8 memory and Blink resource cache usage, but could be expanded to include |
24 // other resources. This is intended for status viewers such as the task | 24 // other resources. This is intended for status viewers such as the task |
25 // manager. | 25 // manager. |
26 // | 26 // |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 std::deque<base::Closure> refresh_callbacks_; | 85 std::deque<base::Closure> refresh_callbacks_; |
86 | 86 |
87 chrome::mojom::ResourceUsageDataPtr stats_; | 87 chrome::mojom::ResourceUsageDataPtr stats_; |
88 | 88 |
89 base::ThreadChecker thread_checker_; | 89 base::ThreadChecker thread_checker_; |
90 | 90 |
91 DISALLOW_COPY_AND_ASSIGN(ProcessResourceUsage); | 91 DISALLOW_COPY_AND_ASSIGN(ProcessResourceUsage); |
92 }; | 92 }; |
93 | 93 |
94 #endif // CHROME_BROWSER_PROCESS_RESOURCE_USAGE_H_ | 94 #endif // CHROME_BROWSER_PROCESS_RESOURCE_USAGE_H_ |
OLD | NEW |