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

Unified Diff: chrome/browser/browser_about_handler.h

Issue 10041017: Show gpu process stats in about:tcmalloc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: with correct (?) layering Created 8 years, 8 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 | « no previous file | chrome/browser/browser_about_handler.cc » ('j') | chrome/browser/ui/webui/about_ui.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | chrome/browser/browser_about_handler.cc » ('j') | chrome/browser/ui/webui/about_ui.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698