summaryrefslogtreecommitdiffstats
path: root/chrome/browser/memory_details.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/memory_details.h')
-rw-r--r--chrome/browser/memory_details.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/memory_details.h b/chrome/browser/memory_details.h
index b92fbae..0b35b4e 100644
--- a/chrome/browser/memory_details.h
+++ b/chrome/browser/memory_details.h
@@ -52,6 +52,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.
@@ -103,6 +107,16 @@ 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 the Chrome/Chromium
+ // process with PID |pid|. The collected data is added to the state of the
+ // object (in |process_data_|).
+ 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();