Index: chrome/browser/browser_about_handler.h |
diff --git a/chrome/browser/browser_about_handler.h b/chrome/browser/browser_about_handler.h |
index a1455e9b14b2fd616a01373c8ffe50d181fffa5f..ce16fb5785358e3fb1b3f159c6526fc9052f9c9e 100644 |
--- a/chrome/browser/browser_about_handler.h |
+++ b/chrome/browser/browser_about_handler.h |
@@ -13,6 +13,7 @@ |
#include "base/process.h" |
#include "base/stringprintf.h" |
#include "build/build_config.h" // USE_TCMALLOC |
+#include "content/public/common/process_type.h" |
template <typename T> struct DefaultSingletonTraits; |
class GURL; |
@@ -57,13 +58,12 @@ class AboutTcmallocOutputs { |
outputs_[header] = output; |
} |
- // Callback for output returned from renderer processes. Adds |
- // the output for a canonical renderer header string that |
+ // Callback for output returned from a child process. Adds |
+ // the output for a canonical process-specific header string that |
// incorporates the pid. |
- void RendererCallback(base::ProcessId pid, const std::string& output) { |
- SetOutput( |
- base::StringPrintf("Renderer PID %d", static_cast<int>(pid)), output); |
- } |
+ void OnStatsForChildProcess(base::ProcessId pid, |
+ content::ProcessType process_type, |
+ const std::string& output); |
private: |
AboutTcmallocOutputs(); |
@@ -75,10 +75,6 @@ class AboutTcmallocOutputs { |
DISALLOW_COPY_AND_ASSIGN(AboutTcmallocOutputs); |
}; |
- |
-// Glue between the callback task and the method in the singleton. |
-void AboutTcmallocRendererCallback(base::ProcessId pid, |
- const std::string& output); |
#endif // defined(USE_TCMALLOC) |
#endif // CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ |