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

Side by Side Diff: chrome/browser/memory_details_mac.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_linux.cc ('k') | chrome/browser/memory_details_win.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 <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/common/chrome_version_info.h" 21 #include "chrome/common/chrome_version_info.h"
22 #include "chrome/common/url_constants.h" 22 #include "chrome/common/url_constants.h"
23 #include "content/browser/browser_child_process_host.h" 23 #include "content/browser/browser_child_process_host.h"
24 #include "content/browser/renderer_host/backing_store_manager.h" 24 #include "content/browser/renderer_host/backing_store_manager.h"
25 #include "content/browser/renderer_host/render_process_host.h" 25 #include "content/browser/renderer_host/render_process_host.h"
26 #include "content/browser/tab_contents/navigation_entry.h" 26 #include "content/browser/tab_contents/navigation_entry.h"
27 #include "content/public/browser/browser_thread.h" 27 #include "content/public/browser/browser_thread.h"
28 #include "grit/chromium_strings.h" 28 #include "grit/chromium_strings.h"
29 #include "ui/base/l10n/l10n_util.h" 29 #include "ui/base/l10n/l10n_util.h"
30 30
31 using content::BrowserThread;
32
31 // TODO(viettrungluu): Many of the TODOs below are subsumed by a general need to 33 // TODO(viettrungluu): Many of the TODOs below are subsumed by a general need to
32 // refactor the about:memory code (not just on Mac, but probably on other 34 // refactor the about:memory code (not just on Mac, but probably on other
33 // platforms as well). I've filed crbug.com/25456. 35 // platforms as well). I've filed crbug.com/25456.
34 36
35 class RenderViewHostDelegate; 37 class RenderViewHostDelegate;
36 38
37 // Known browsers which we collect details for. |CHROME_BROWSER| *must* be the 39 // Known browsers which we collect details for. |CHROME_BROWSER| *must* be the
38 // first browser listed. The order here must match those in |process_template| 40 // first browser listed. The order here must match those in |process_template|
39 // (in |MemoryDetails::MemoryDetails()| below). 41 // (in |MemoryDetails::MemoryDetails()| below).
40 // TODO(viettrungluu): In the big refactoring (see above), get rid of this order 42 // TODO(viettrungluu): In the big refactoring (see above), get rid of this order
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 } 235 }
234 } 236 }
235 237
236 // Memory info. 238 // Memory info.
237 process_info.GetCommittedKBytesOfPID(info.pid, &info.committed); 239 process_info.GetCommittedKBytesOfPID(info.pid, &info.committed);
238 process_info.GetWorkingSetKBytesOfPID(info.pid, &info.working_set); 240 process_info.GetWorkingSetKBytesOfPID(info.pid, &info.working_set);
239 241
240 // Add the process info to our list. 242 // Add the process info to our list.
241 process_data_[CHROME_BROWSER].processes.push_back(info); 243 process_data_[CHROME_BROWSER].processes.push_back(info);
242 } 244 }
OLDNEW
« no previous file with comments | « chrome/browser/memory_details_linux.cc ('k') | chrome/browser/memory_details_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698