| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| 11 #include "base/file_version_info.h" | 11 #include "base/file_version_info.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "base/win/scoped_handle.h" | 14 #include "base/win/scoped_handle.h" |
| 15 #include "base/win/windows_version.h" | 15 #include "base/win/windows_version.h" |
| 16 #include "chrome/common/chrome_version_info.h" | 16 #include "chrome/common/chrome_version_info.h" |
| 17 #include "chrome/common/url_constants.h" | 17 #include "chrome/common/url_constants.h" |
| 18 #include "content/browser/renderer_host/backing_store_manager.h" | |
| 19 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
| 20 #include "content/public/common/process_type.h" | 19 #include "content/public/common/process_type.h" |
| 21 #include "grit/chromium_strings.h" | 20 #include "grit/chromium_strings.h" |
| 22 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
| 23 | 22 |
| 24 using content::BrowserThread; | 23 using content::BrowserThread; |
| 25 | 24 |
| 26 // Known browsers which we collect details for. | 25 // Known browsers which we collect details for. |
| 27 enum { | 26 enum { |
| 28 CHROME_BROWSER = 0, | 27 CHROME_BROWSER = 0, |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 } | 151 } |
| 153 break; | 152 break; |
| 154 } | 153 } |
| 155 } while (::Process32Next(snapshot, &process_entry)); | 154 } while (::Process32Next(snapshot, &process_entry)); |
| 156 | 155 |
| 157 // Finally return to the browser thread. | 156 // Finally return to the browser thread. |
| 158 BrowserThread::PostTask( | 157 BrowserThread::PostTask( |
| 159 BrowserThread::UI, FROM_HERE, | 158 BrowserThread::UI, FROM_HERE, |
| 160 base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this)); | 159 base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this)); |
| 161 } | 160 } |
| OLD | NEW |