| 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> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/file_version_info.h" | 14 #include "base/file_version_info.h" |
| 15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 16 #include "base/mac/foundation_util.h" | 16 #include "base/mac/foundation_util.h" |
| 17 #include "base/process/process_iterator.h" | 17 #include "base/process/process_iterator.h" |
| 18 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| 19 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
| 20 #include "base/threading/sequenced_worker_pool.h" |
| 20 #include "base/threading/thread.h" | 21 #include "base/threading/thread.h" |
| 21 #include "chrome/common/chrome_constants.h" | 22 #include "chrome/common/chrome_constants.h" |
| 22 #include "chrome/common/url_constants.h" | 23 #include "chrome/common/url_constants.h" |
| 23 #include "chrome/grit/chromium_strings.h" | 24 #include "chrome/grit/chromium_strings.h" |
| 24 #include "components/version_info/version_info.h" | 25 #include "components/version_info/version_info.h" |
| 25 #include "content/public/browser/browser_child_process_host.h" | 26 #include "content/public/browser/browser_child_process_host.h" |
| 26 #include "content/public/browser/browser_thread.h" | 27 #include "content/public/browser/browser_thread.h" |
| 27 #include "content/public/common/process_type.h" | 28 #include "content/public/common/process_type.h" |
| 28 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
| 29 | 30 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 124 |
| 124 // Collect data about Chrome/Chromium. | 125 // Collect data about Chrome/Chromium. |
| 125 for (const base::ProcessId& pid : all_pids) | 126 for (const base::ProcessId& pid : all_pids) |
| 126 CollectProcessDataForChromeProcess(child_info, pid, chrome_processes); | 127 CollectProcessDataForChromeProcess(child_info, pid, chrome_processes); |
| 127 | 128 |
| 128 // Finally return to the browser thread. | 129 // Finally return to the browser thread. |
| 129 BrowserThread::PostTask( | 130 BrowserThread::PostTask( |
| 130 BrowserThread::UI, FROM_HERE, | 131 BrowserThread::UI, FROM_HERE, |
| 131 base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this)); | 132 base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this)); |
| 132 } | 133 } |
| OLD | NEW |