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

Unified Diff: chrome/browser/memory_details.h

Issue 173261: (Mac) Implement about:memory. (Closed)
Patch Set: Fixed per jrg's (re)review. Created 11 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/memory_details.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/memory_details.h
diff --git a/chrome/browser/memory_details.h b/chrome/browser/memory_details.h
index 5e155a1035a0a555d9c7f50770a90cfccfc146ac..74b32f1976766515b91a3a3c682423fb2f13e2da 100644
--- a/chrome/browser/memory_details.h
+++ b/chrome/browser/memory_details.h
@@ -54,6 +54,10 @@ struct ProcessData {
ProcessMemoryInformationList processes;
};
+#if defined(OS_MACOSX)
+class ProcessInfoSnapshot;
+#endif
+
// MemoryDetails fetches memory details about current running browsers.
// Because this data can only be fetched asynchronously, callers use
// this class via a callback.
@@ -105,6 +109,15 @@ class MemoryDetails : public base::RefCountedThreadSafe<MemoryDetails> {
// The parameter holds information about processes from the IO thread.
void CollectProcessData(std::vector<ProcessMemoryInformation>);
+#if defined(OS_MACOSX)
+ // A helper for |CollectProcessData()|, collecting data on a Chrome/Chromium
+ // process.
+ void CollectProcessDataChrome(
+ const std::vector<ProcessMemoryInformation>& child_info,
+ base::ProcessId pid,
+ const ProcessInfoSnapshot& process_info);
+#endif
+
// Collect child process information on the UI thread. Information about
// renderer processes is only available there.
void CollectChildInfoOnUIThread();
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/memory_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698