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 <memory> | 7 #include <memory> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/process/process_iterator.h" | 13 #include "base/process/process_iterator.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/threading/sequenced_worker_pool.h" | |
16 #include "chrome/common/chrome_constants.h" | 15 #include "chrome/common/chrome_constants.h" |
17 #include "chrome/grit/chromium_strings.h" | 16 #include "chrome/grit/chromium_strings.h" |
18 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
19 #include "content/public/common/process_type.h" | 18 #include "content/public/common/process_type.h" |
20 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
21 | 20 |
22 using base::ProcessEntry; | 21 using base::ProcessEntry; |
23 using base::ProcessId; | 22 using base::ProcessId; |
24 using content::BrowserThread; | 23 using content::BrowserThread; |
25 | 24 |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 current_browser.name = l10n_util::GetStringUTF16(IDS_PRODUCT_NAME); | 131 current_browser.name = l10n_util::GetStringUTF16(IDS_PRODUCT_NAME); |
133 current_browser.process_name = | 132 current_browser.process_name = |
134 base::ASCIIToUTF16(chrome::kBrowserProcessExecutableName); | 133 base::ASCIIToUTF16(chrome::kBrowserProcessExecutableName); |
135 process_data_.push_back(current_browser); | 134 process_data_.push_back(current_browser); |
136 | 135 |
137 // Finally return to the browser thread. | 136 // Finally return to the browser thread. |
138 BrowserThread::PostTask( | 137 BrowserThread::PostTask( |
139 BrowserThread::UI, FROM_HERE, | 138 BrowserThread::UI, FROM_HERE, |
140 base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this)); | 139 base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this)); |
141 } | 140 } |
OLD | NEW |