| 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 <psapi.h> | 7 #include <psapi.h> |
| 8 #include <TlHelp32.h> | 8 #include <TlHelp32.h> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/file_version_info.h" | 11 #include "base/file_version_info.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 15 #include "base/win/scoped_handle.h" | 15 #include "base/win/scoped_handle.h" |
| 16 #include "base/win/windows_version.h" | 16 #include "base/win/windows_version.h" |
| 17 #include "chrome/common/chrome_version_info.h" | 17 #include "chrome/common/chrome_version_info.h" |
| 18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
| 19 #include "chrome/grit/chromium_strings.h" |
| 19 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
| 20 #include "content/public/common/process_type.h" | 21 #include "content/public/common/process_type.h" |
| 21 #include "grit/chromium_strings.h" | |
| 22 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
| 23 | 23 |
| 24 using content::BrowserThread; | 24 using content::BrowserThread; |
| 25 | 25 |
| 26 // Known browsers which we collect details for. | 26 // Known browsers which we collect details for. |
| 27 enum { | 27 enum { |
| 28 CHROME_BROWSER = 0, | 28 CHROME_BROWSER = 0, |
| 29 CHROME_NACL_PROCESS, | 29 CHROME_NACL_PROCESS, |
| 30 IE_BROWSER, | 30 IE_BROWSER, |
| 31 FIREFOX_BROWSER, | 31 FIREFOX_BROWSER, |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 } | 154 } |
| 155 break; | 155 break; |
| 156 } | 156 } |
| 157 } while (::Process32Next(snapshot, &process_entry)); | 157 } while (::Process32Next(snapshot, &process_entry)); |
| 158 | 158 |
| 159 // Finally return to the browser thread. | 159 // Finally return to the browser thread. |
| 160 BrowserThread::PostTask( | 160 BrowserThread::PostTask( |
| 161 BrowserThread::UI, FROM_HERE, | 161 BrowserThread::UI, FROM_HERE, |
| 162 base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this)); | 162 base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this)); |
| 163 } | 163 } |
| OLD | NEW |