OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 <unistd.h> | 7 #include <unistd.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #include <dirent.h> | 9 #include <dirent.h> |
10 | 10 |
11 #include "base/eintr_wrapper.h" | 11 #include "base/eintr_wrapper.h" |
12 #include "base/file_version_info.h" | 12 #include "base/file_version_info.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "base/process_util.h" | 14 #include "base/process_util.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "chrome/browser/browser_child_process_host.h" | 16 #include "chrome/browser/browser_child_process_host.h" |
17 #include "chrome/browser/browser_process.h" | |
18 #include "chrome/browser/browser_thread.h" | 17 #include "chrome/browser/browser_thread.h" |
19 #include "chrome/browser/zygote_host_linux.h" | 18 #include "chrome/browser/zygote_host_linux.h" |
20 #include "chrome/common/chrome_constants.h" | 19 #include "chrome/common/chrome_constants.h" |
21 #include "chrome/common/url_constants.h" | 20 #include "chrome/common/url_constants.h" |
22 #include "grit/chromium_strings.h" | 21 #include "grit/chromium_strings.h" |
23 | 22 |
24 // Known browsers which we collect details for. | 23 // Known browsers which we collect details for. |
25 enum BrowserType { | 24 enum BrowserType { |
26 CHROME = 0, | 25 CHROME = 0, |
27 FIREFOX, | 26 FIREFOX, |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 } | 262 } |
264 | 263 |
265 process_data_.push_back(browser); | 264 process_data_.push_back(browser); |
266 } | 265 } |
267 | 266 |
268 // Finally return to the browser thread. | 267 // Finally return to the browser thread. |
269 BrowserThread::PostTask( | 268 BrowserThread::PostTask( |
270 BrowserThread::UI, FROM_HERE, | 269 BrowserThread::UI, FROM_HERE, |
271 NewRunnableMethod(this, &MemoryDetails::CollectChildInfoOnUIThread)); | 270 NewRunnableMethod(this, &MemoryDetails::CollectChildInfoOnUIThread)); |
272 } | 271 } |
OLD | NEW |