Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: chrome/browser/memory_details_win.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/memory_details_mac.cc ('k') | chrome/browser/memory_purger.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/browser_child_process_host.h" 18 #include "content/browser/browser_child_process_host.h"
19 #include "content/browser/renderer_host/backing_store_manager.h" 19 #include "content/browser/renderer_host/backing_store_manager.h"
20 #include "content/browser/renderer_host/render_process_host.h" 20 #include "content/browser/renderer_host/render_process_host.h"
21 #include "content/browser/tab_contents/navigation_entry.h" 21 #include "content/browser/tab_contents/navigation_entry.h"
22 #include "content/public/browser/browser_thread.h" 22 #include "content/public/browser/browser_thread.h"
23 #include "grit/chromium_strings.h" 23 #include "grit/chromium_strings.h"
24 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
25 25
26 using content::BrowserThread;
27
26 // Known browsers which we collect details for. 28 // Known browsers which we collect details for.
27 enum { 29 enum {
28 CHROME_BROWSER = 0, 30 CHROME_BROWSER = 0,
29 CHROME_NACL_PROCESS, 31 CHROME_NACL_PROCESS,
30 IE_BROWSER, 32 IE_BROWSER,
31 FIREFOX_BROWSER, 33 FIREFOX_BROWSER,
32 OPERA_BROWSER, 34 OPERA_BROWSER,
33 SAFARI_BROWSER, 35 SAFARI_BROWSER,
34 IE_64BIT_BROWSER, 36 IE_64BIT_BROWSER,
35 KONQUEROR_BROWSER, 37 KONQUEROR_BROWSER,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 154 }
153 break; 155 break;
154 } 156 }
155 } while (::Process32Next(snapshot, &process_entry)); 157 } while (::Process32Next(snapshot, &process_entry));
156 158
157 // Finally return to the browser thread. 159 // Finally return to the browser thread.
158 BrowserThread::PostTask( 160 BrowserThread::PostTask(
159 BrowserThread::UI, FROM_HERE, 161 BrowserThread::UI, FROM_HERE,
160 base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this)); 162 base::Bind(&MemoryDetails::CollectChildInfoOnUIThread, this));
161 } 163 }
OLDNEW
« no previous file with comments | « chrome/browser/memory_details_mac.cc ('k') | chrome/browser/memory_purger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698