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> |
| 9 |
8 #include <deque> | 10 #include <deque> |
9 | 11 |
10 #include "base/basictypes.h" | |
11 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/macros.h" |
12 #include "base/threading/thread_checker.h" | 14 #include "base/threading/thread_checker.h" |
13 #include "chrome/common/resource_usage_reporter.mojom.h" | 15 #include "chrome/common/resource_usage_reporter.mojom.h" |
14 #include "third_party/WebKit/public/web/WebCache.h" | 16 #include "third_party/WebKit/public/web/WebCache.h" |
15 | 17 |
16 // Provides resource usage information about a child process. | 18 // Provides resource usage information about a child process. |
17 // | 19 // |
18 // This is a wrapper around the ResourceUsageReporter Mojo service that exposes | 20 // This is a wrapper around the ResourceUsageReporter Mojo service that exposes |
19 // information about resources used by a child process. Currently, this is only | 21 // information about resources used by a child process. Currently, this is only |
20 // V8 memory and Blink resource cache usage, but could be expanded to include | 22 // V8 memory and Blink resource cache usage, but could be expanded to include |
21 // other resources. This is intended for status viewers such as the task | 23 // other resources. This is intended for status viewers such as the task |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 std::deque<base::Closure> refresh_callbacks_; | 81 std::deque<base::Closure> refresh_callbacks_; |
80 | 82 |
81 ResourceUsageDataPtr stats_; | 83 ResourceUsageDataPtr stats_; |
82 | 84 |
83 base::ThreadChecker thread_checker_; | 85 base::ThreadChecker thread_checker_; |
84 | 86 |
85 DISALLOW_COPY_AND_ASSIGN(ProcessResourceUsage); | 87 DISALLOW_COPY_AND_ASSIGN(ProcessResourceUsage); |
86 }; | 88 }; |
87 | 89 |
88 #endif // CHROME_BROWSER_PROCESS_RESOURCE_USAGE_H_ | 90 #endif // CHROME_BROWSER_PROCESS_RESOURCE_USAGE_H_ |
OLD | NEW |