OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/process_util.h" | 11 #include "base/process/process_metrics.h" |
12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
13 #include "chrome/browser/site_details.h" | 13 #include "chrome/browser/site_details.h" |
14 #include "content/public/common/process_type.h" | 14 #include "content/public/common/process_type.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 // NOTE: Do not remove or reorder the elements in this enum, and only add new | 20 // NOTE: Do not remove or reorder the elements in this enum, and only add new |
21 // items at the end. We depend on these specific values in a histogram. | 21 // items at the end. We depend on these specific values in a histogram. |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 UserMetricsMode user_metrics_mode_; | 206 UserMetricsMode user_metrics_mode_; |
207 | 207 |
208 #if defined(OS_CHROMEOS) | 208 #if defined(OS_CHROMEOS) |
209 SwapData swap_data_; | 209 SwapData swap_data_; |
210 #endif | 210 #endif |
211 | 211 |
212 DISALLOW_COPY_AND_ASSIGN(MemoryDetails); | 212 DISALLOW_COPY_AND_ASSIGN(MemoryDetails); |
213 }; | 213 }; |
214 | 214 |
215 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ | 215 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ |
OLD | NEW |