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 #include "chrome/browser/memory_details.h" | 5 #include "chrome/browser/memory_details.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <set> | 9 #include <set> |
8 #include <string> | 10 #include <string> |
9 | 11 |
10 #include "base/basictypes.h" | |
11 #include "base/bind.h" | 12 #include "base/bind.h" |
12 #include "base/file_version_info.h" | 13 #include "base/file_version_info.h" |
13 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
14 #include "base/mac/foundation_util.h" | 15 #include "base/mac/foundation_util.h" |
15 #include "base/process/process_iterator.h" | 16 #include "base/process/process_iterator.h" |
16 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
17 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
18 #include "base/threading/thread.h" | 19 #include "base/threading/thread.h" |
19 #include "chrome/browser/process_info_snapshot.h" | 20 #include "chrome/browser/process_info_snapshot.h" |
20 #include "chrome/common/chrome_constants.h" | 21 #include "chrome/common/chrome_constants.h" |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 234 |
234 // And collect data about the helpers. | 235 // And collect data about the helpers. |
235 for (const base::ProcessId& pid : helper_pids) | 236 for (const base::ProcessId& pid : helper_pids) |
236 CollectProcessDataForChromeProcess(child_info, pid, chrome_processes); | 237 CollectProcessDataForChromeProcess(child_info, pid, chrome_processes); |
237 | 238 |
238 // Finally return to the browser thread. | 239 // Finally return to the browser thread. |
239 BrowserThread::PostTask( | 240 BrowserThread::PostTask( |
240 BrowserThread::UI, FROM_HERE, | 241 BrowserThread::UI, FROM_HERE, |
241 base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this)); | 242 base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this)); |
242 } | 243 } |
OLD | NEW |