| 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 #include <sys/types.h> | 8 #include <sys/types.h> | 
| 9 #include <unistd.h> | 9 #include <unistd.h> | 
| 10 | 10 | 
| 11 #include <map> | 11 #include <map> | 
| 12 #include <memory> | 12 #include <memory> | 
| 13 #include <set> | 13 #include <set> | 
| 14 | 14 | 
| 15 #include "base/bind.h" | 15 #include "base/bind.h" | 
| 16 #include "base/files/file_util.h" | 16 #include "base/files/file_util.h" | 
| 17 #include "base/process/process_iterator.h" | 17 #include "base/process/process_iterator.h" | 
| 18 #include "base/process/process_metrics.h" | 18 #include "base/process/process_metrics.h" | 
| 19 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" | 
| 20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" | 
| 21 #include "base/strings/utf_string_conversions.h" | 21 #include "base/strings/utf_string_conversions.h" | 
|  | 22 #include "base/threading/sequenced_worker_pool.h" | 
| 22 #include "build/build_config.h" | 23 #include "build/build_config.h" | 
| 23 #include "chrome/common/chrome_constants.h" | 24 #include "chrome/common/chrome_constants.h" | 
| 24 #include "chrome/grit/chromium_strings.h" | 25 #include "chrome/grit/chromium_strings.h" | 
| 25 #include "content/public/browser/browser_thread.h" | 26 #include "content/public/browser/browser_thread.h" | 
| 26 #include "content/public/common/process_type.h" | 27 #include "content/public/common/process_type.h" | 
| 27 #include "ui/base/l10n/l10n_util.h" | 28 #include "ui/base/l10n/l10n_util.h" | 
| 28 | 29 | 
| 29 using base::ProcessEntry; | 30 using base::ProcessEntry; | 
| 30 using content::BrowserThread; | 31 using content::BrowserThread; | 
| 31 | 32 | 
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 138 | 139 | 
| 139 #if defined(OS_CHROMEOS) | 140 #if defined(OS_CHROMEOS) | 
| 140   base::GetSwapInfo(&swap_info_); | 141   base::GetSwapInfo(&swap_info_); | 
| 141 #endif | 142 #endif | 
| 142 | 143 | 
| 143   // Finally return to the browser thread. | 144   // Finally return to the browser thread. | 
| 144   BrowserThread::PostTask( | 145   BrowserThread::PostTask( | 
| 145       BrowserThread::UI, FROM_HERE, | 146       BrowserThread::UI, FROM_HERE, | 
| 146       base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this)); | 147       base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this)); | 
| 147 } | 148 } | 
| OLD | NEW | 
|---|