OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_MEMORY_DETAILS_H_ | 5 #ifndef CHROME_BROWSER_MEMORY_DETAILS_H_ |
6 #define CHROME_BROWSER_MEMORY_DETAILS_H_ | 6 #define CHROME_BROWSER_MEMORY_DETAILS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/process_util.h" | 11 #include "base/process_util.h" |
12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "chrome/common/child_process_info.h" | 14 #include "content/common/child_process_info.h" |
15 | 15 |
16 // We collect data about each browser process. A browser may | 16 // We collect data about each browser process. A browser may |
17 // have multiple processes (of course!). Even IE has multiple | 17 // have multiple processes (of course!). Even IE has multiple |
18 // processes these days. | 18 // processes these days. |
19 struct ProcessMemoryInformation { | 19 struct ProcessMemoryInformation { |
20 ProcessMemoryInformation(); | 20 ProcessMemoryInformation(); |
21 ~ProcessMemoryInformation(); | 21 ~ProcessMemoryInformation(); |
22 | 22 |
23 // The process id. | 23 // The process id. |
24 base::ProcessId pid; | 24 base::ProcessId pid; |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 144 |
145 // Returns a pointer to the ProcessData structure for Chrome. | 145 // Returns a pointer to the ProcessData structure for Chrome. |
146 ProcessData* ChromeBrowser(); | 146 ProcessData* ChromeBrowser(); |
147 | 147 |
148 std::vector<ProcessData> process_data_; | 148 std::vector<ProcessData> process_data_; |
149 | 149 |
150 DISALLOW_COPY_AND_ASSIGN(MemoryDetails); | 150 DISALLOW_COPY_AND_ASSIGN(MemoryDetails); |
151 }; | 151 }; |
152 | 152 |
153 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ | 153 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ |
OLD | NEW |