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

Side by Side Diff: chrome/browser/ui/webui/metrics_handler.h

Issue 8528054: Sync Promo: Add more UMA metrics. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more code review changes Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_METRICS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_METRICS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_METRICS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_METRICS_HANDLER_H_
7 7
8 #include "content/browser/webui/web_ui.h" 8 #include "content/browser/webui/web_ui.h"
9 9
10 /////////////////////////////////////////////////////////////////////////////// 10 ///////////////////////////////////////////////////////////////////////////////
(...skipping 15 matching lines...) Expand all
26 MetricsHandler(); 26 MetricsHandler();
27 virtual ~MetricsHandler(); 27 virtual ~MetricsHandler();
28 28
29 // WebUIMessageHandler implementation. 29 // WebUIMessageHandler implementation.
30 virtual void RegisterMessages() OVERRIDE; 30 virtual void RegisterMessages() OVERRIDE;
31 31
32 // Callback for the "metricsHandler:recordAction" message. This records a 32 // Callback for the "metricsHandler:recordAction" message. This records a
33 // user action. 33 // user action.
34 void HandleRecordAction(const base::ListValue* args); 34 void HandleRecordAction(const base::ListValue* args);
35 35
36 // TODO(dbeam): http://crbug.com/104338
37
36 // Callback for the "metricsHandler:recordInHistogram" message. This records 38 // Callback for the "metricsHandler:recordInHistogram" message. This records
37 // into a histogram. |args| contains the histogram name, the value to record, 39 // into a histogram. |args| contains the histogram name, the value to record,
38 // and the maximum allowed value, which can be at most 4000. The histogram 40 // and the maximum allowed value, which can be at most 4000. The histogram
39 // will use at most 100 buckets, one for each 1, 10, or 100 different values, 41 // will use at most 100 buckets, one for each 1, 10, or 100 different values,
40 // depending on the maximum value. 42 // depending on the maximum value.
41 void HandleRecordInHistogram(const base::ListValue* args); 43 void HandleRecordInHistogram(const base::ListValue* args);
42 44
43 // Callback for the "metricsHandler:logEventTime" message. 45 // Callback for the "metricsHandler:logEventTime" message.
44 void HandleLogEventTime(const base::ListValue* args); 46 void HandleLogEventTime(const base::ListValue* args);
45 47
46 private: 48 private:
47 DISALLOW_COPY_AND_ASSIGN(MetricsHandler); 49 DISALLOW_COPY_AND_ASSIGN(MetricsHandler);
48 }; 50 };
49 51
50 #endif // CHROME_BROWSER_UI_WEBUI_METRICS_HANDLER_H_ 52 #endif // CHROME_BROWSER_UI_WEBUI_METRICS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/sync_setup_overlay.js ('k') | chrome/browser/ui/webui/sync_promo_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698