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

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

Issue 2716333002: Implement important sites dialog for desktop. (Closed)
Patch Set: change element.$.someId to element.$$(#someId) Created 3 years, 7 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) 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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "content/public/browser/web_ui_message_handler.h" 10 #include "content/public/browser/web_ui_message_handler.h"
(...skipping 26 matching lines...) Expand all
37 37
38 // TODO(dbeam): http://crbug.com/104338 38 // TODO(dbeam): http://crbug.com/104338
39 39
40 // Callback for the "metricsHandler:recordInHistogram" message. This records 40 // Callback for the "metricsHandler:recordInHistogram" message. This records
41 // into a histogram. |args| contains the histogram name, the value to record, 41 // into a histogram. |args| contains the histogram name, the value to record,
42 // and the maximum allowed value, which can be at most 4000. The histogram 42 // and the maximum allowed value, which can be at most 4000. The histogram
43 // will use at most 100 buckets, one for each 1, 10, or 100 different values, 43 // will use at most 100 buckets, one for each 1, 10, or 100 different values,
44 // depending on the maximum value. 44 // depending on the maximum value.
45 void HandleRecordInHistogram(const base::ListValue* args); 45 void HandleRecordInHistogram(const base::ListValue* args);
46 46
47 // Callback for the "metricsHandler:recordBooleanHistogram" message. This
48 // records into a boolean histogram. |args| contains the histogram name, and
49 // the value to record.
50 void HandleRecordBooleanHistogram(const base::ListValue* args);
51
47 // Record a millisecond time value in a histogram, similar to 52 // Record a millisecond time value in a histogram, similar to
48 // UMA_HISTOGRAM_TIMES. Handles times between 1ms and 10sec. |args| 53 // UMA_HISTOGRAM_TIMES. Handles times between 1ms and 10sec. |args|
49 // contains the histogram name and a value in milliseconds. 54 // contains the histogram name and a value in milliseconds.
50 void HandleRecordTime(const base::ListValue* args); 55 void HandleRecordTime(const base::ListValue* args);
51 56
52 // Callback for the "metricsHandler:logEventTime" message. 57 // Callback for the "metricsHandler:logEventTime" message.
53 void HandleLogEventTime(const base::ListValue* args); 58 void HandleLogEventTime(const base::ListValue* args);
54 59
55 private: 60 private:
56 DISALLOW_COPY_AND_ASSIGN(MetricsHandler); 61 DISALLOW_COPY_AND_ASSIGN(MetricsHandler);
57 }; 62 };
58 63
59 #endif // CHROME_BROWSER_UI_WEBUI_METRICS_HANDLER_H_ 64 #endif // CHROME_BROWSER_UI_WEBUI_METRICS_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | chrome/browser/ui/webui/metrics_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698