| Index: chrome/browser/ui/webui/performance_monitor/web_ui_handler.h
|
| diff --git a/chrome/browser/ui/webui/performance_monitor/web_ui_handler.h b/chrome/browser/ui/webui/performance_monitor/web_ui_handler.h
|
| index 9c3039e12d4bfad7b3c5b60b84da1673f6e8686f..3576c8b6693c912a2edf57baea3ded08ba7f2406 100644
|
| --- a/chrome/browser/ui/webui/performance_monitor/web_ui_handler.h
|
| +++ b/chrome/browser/ui/webui/performance_monitor/web_ui_handler.h
|
| @@ -12,6 +12,7 @@
|
| namespace base {
|
| class ListValue;
|
| class Time;
|
| +class Value;
|
| } // namespace base
|
|
|
| namespace performance_monitor {
|
| @@ -31,18 +32,29 @@ class WebUIHandler : public content::WebUIMessageHandler,
|
| virtual void RegisterMessages() OVERRIDE;
|
|
|
| // Returns |results| through the given |callback| string.
|
| - void ReturnResults(const std::string& callback,
|
| - const base::ListValue* results);
|
| + void ReturnResults(const std::string& callback, const base::Value* results);
|
|
|
| // Callback for the "getActiveIntervals" message.
|
| + // |args| contains a start and an end time.
|
| void HandleGetActiveIntervals(const base::ListValue* args);
|
|
|
| // Callback for the "getAllEventTypes" message.
|
| + // |args| is unused.
|
| void HandleGetAllEventTypes(const base::ListValue* args);
|
|
|
| // Callback for the "getEvents" message.
|
| + // |args| contains an EventType id to collect and a start and end time.
|
| void HandleGetEvents(const base::ListValue* args);
|
|
|
| + // Callback for the "getAllMetricTypes" message.
|
| + // |args| is unused.
|
| + void HandleGetAllMetricTypes(const base::ListValue* args);
|
| +
|
| + // Callback for the "getMetric" message.
|
| + // |args| contains a MetricType id to collect, a start and end time, and a
|
| + // time resolution which defines the spacing of metric samples returned.
|
| + void HandleGetMetric(const base::ListValue* args);
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(WebUIHandler);
|
| };
|
|
|
|
|