OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/process_util.h" | 10 #include "base/process_util.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // } | 71 // } |
72 class MemoryDetails : public base::RefCountedThreadSafe<MemoryDetails> { | 72 class MemoryDetails : public base::RefCountedThreadSafe<MemoryDetails> { |
73 public: | 73 public: |
74 // Known browsers which we collect details for. | 74 // Known browsers which we collect details for. |
75 enum { | 75 enum { |
76 CHROME_BROWSER = 0, | 76 CHROME_BROWSER = 0, |
77 IE_BROWSER, | 77 IE_BROWSER, |
78 FIREFOX_BROWSER, | 78 FIREFOX_BROWSER, |
79 OPERA_BROWSER, | 79 OPERA_BROWSER, |
80 SAFARI_BROWSER, | 80 SAFARI_BROWSER, |
| 81 IE_64BIT_BROWSER, |
81 MAX_BROWSERS | 82 MAX_BROWSERS |
82 } BrowserProcess; | 83 } BrowserProcess; |
83 | 84 |
84 // Constructor. | 85 // Constructor. |
85 MemoryDetails(); | 86 MemoryDetails(); |
86 virtual ~MemoryDetails() {} | 87 virtual ~MemoryDetails() {} |
87 | 88 |
88 // Access to the process detail information. This is an array | 89 // Access to the process detail information. This is an array |
89 // of MAX_BROWSER ProcessData structures. This data is only available | 90 // of MAX_BROWSER ProcessData structures. This data is only available |
90 // after OnDetailsAvailable() has been called. | 91 // after OnDetailsAvailable() has been called. |
(...skipping 30 matching lines...) Expand all Loading... |
121 // the global histograms for tracking memory usage. | 122 // the global histograms for tracking memory usage. |
122 void UpdateHistograms(); | 123 void UpdateHistograms(); |
123 | 124 |
124 ProcessData process_data_[MAX_BROWSERS]; | 125 ProcessData process_data_[MAX_BROWSERS]; |
125 MessageLoop* ui_loop_; | 126 MessageLoop* ui_loop_; |
126 | 127 |
127 DISALLOW_EVIL_CONSTRUCTORS(MemoryDetails); | 128 DISALLOW_EVIL_CONSTRUCTORS(MemoryDetails); |
128 }; | 129 }; |
129 | 130 |
130 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ | 131 #endif // CHROME_BROWSER_MEMORY_DETAILS_H_ |
OLD | NEW |