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

Side by Side Diff: chrome/browser/ui/webui/performance_monitor/web_ui_handler.h

Issue 10702117: Chrome Performance Monitor: Metric API Functions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed it up. Created 8 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_PERFORMANCE_MONITOR_WEB_UI_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PERFORMANCE_MONITOR_WEB_UI_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_PERFORMANCE_MONITOR_WEB_UI_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PERFORMANCE_MONITOR_WEB_UI_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 18 matching lines...) Expand all
29 virtual ~WebUIHandler(); 29 virtual ~WebUIHandler();
30 30
31 // WebUIMessageHandler implementation. 31 // WebUIMessageHandler implementation.
32 virtual void RegisterMessages() OVERRIDE; 32 virtual void RegisterMessages() OVERRIDE;
33 33
34 // Returns |results| through the given |callback| string. 34 // Returns |results| through the given |callback| string.
35 void ReturnResults(const std::string& callback, 35 void ReturnResults(const std::string& callback,
36 const base::ListValue* results); 36 const base::ListValue* results);
37 37
38 // Callback for the "getActiveIntervals" message. 38 // Callback for the "getActiveIntervals" message.
39 void HandleGetActiveIntervals(const base::ListValue* args); 39 void HandleGetActiveIntervals(const base::ListValue* args);
Evan Stade 2012/07/10 07:59:39 the docs for all these functions should mention wh
Matt Tytel 2012/07/10 19:08:19 Done.
40 40
41 // Callback for the "getAllEventTypes" message. 41 // Callback for the "getAllEventTypes" message.
42 void HandleGetAllEventTypes(const base::ListValue* args); 42 void HandleGetAllEventTypes(const base::ListValue* args);
43 43
44 // Callback for the "getEvents" message. 44 // Callback for the "getEvents" message.
45 void HandleGetEvents(const base::ListValue* args); 45 void HandleGetEvents(const base::ListValue* args);
46 46
47 // Callback for the "getAllMetricTypes" message.
48 void HandleGetAllMetricTypes(const base::ListValue* args);
49
50 // Callback for the "getMetric" message.
51 void HandleGetMetric(const base::ListValue* args);
52
47 DISALLOW_COPY_AND_ASSIGN(WebUIHandler); 53 DISALLOW_COPY_AND_ASSIGN(WebUIHandler);
48 }; 54 };
49 55
50 } // namespace performance_monitor 56 } // namespace performance_monitor
51 57
52 #endif // CHROME_BROWSER_UI_WEBUI_PERFORMANCE_MONITOR_WEB_UI_HANDLER_H_ 58 #endif // CHROME_BROWSER_UI_WEBUI_PERFORMANCE_MONITOR_WEB_UI_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698