| Index: chrome/browser/memory_details.h
|
| diff --git a/chrome/browser/memory_details.h b/chrome/browser/memory_details.h
|
| index b92fbaefb87c08c049a93b067fa8ca4a5468b861..0b35b4e1abeee619779fd57baf2124a0523354a0 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();
|
|
|