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

Side by Side Diff: components/error_page/common/net_error_info.h

Issue 1214303003: Add UMA histograms for Google cached copy experiment on network error interstitial (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix NetErrorHelperCore unittest Created 5 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 COMPONENTS_ERROR_PAGE_COMMON_NET_ERROR_INFO_H_ 5 #ifndef COMPONENTS_ERROR_PAGE_COMMON_NET_ERROR_INFO_H_
6 #define COMPONENTS_ERROR_PAGE_COMMON_NET_ERROR_INFO_H_ 6 #define COMPONENTS_ERROR_PAGE_COMMON_NET_ERROR_INFO_H_
7 7
8 // TODO(hashimoto): Change this to namespace error_page. 8 // TODO(hashimoto): Change this to namespace error_page.
9 namespace chrome_common_net { 9 namespace chrome_common_net {
10 10
11 // Network error page events. Used for UMA statistics. 11 // Network error page events. Used for UMA statistics.
12 enum NetworkErrorPageEvent { 12 enum NetworkErrorPageEvent {
13 NETWORK_ERROR_PAGE_SHOWN, // Error pages shown. 13 NETWORK_ERROR_PAGE_SHOWN = 0, // Error pages shown.
14 14
15 NETWORK_ERROR_PAGE_RELOAD_BUTTON_SHOWN, // Reload buttons shown. 15 NETWORK_ERROR_PAGE_RELOAD_BUTTON_SHOWN = 1, // Reload buttons shown.
16 NETWORK_ERROR_PAGE_RELOAD_BUTTON_CLICKED, // Reload button clicked. 16 NETWORK_ERROR_PAGE_RELOAD_BUTTON_CLICKED = 2, // Reload button clicked.
17 NETWORK_ERROR_PAGE_RELOAD_BUTTON_ERROR, // Reload button clicked 17 NETWORK_ERROR_PAGE_RELOAD_BUTTON_ERROR = 3, // Reload button clicked
18 // -> error. 18 // -> error.
19 19
20 // Same for the "Show saved copy" button. 20 // Same for the "Show saved copy" button.
21 NETWORK_ERROR_PAGE_SHOW_SAVED_COPY_BUTTON_SHOWN, 21 NETWORK_ERROR_PAGE_SHOW_SAVED_COPY_BUTTON_SHOWN = 4,
22 NETWORK_ERROR_PAGE_SHOW_SAVED_COPY_BUTTON_CLICKED, 22 NETWORK_ERROR_PAGE_SHOW_SAVED_COPY_BUTTON_CLICKED = 5,
23 NETWORK_ERROR_PAGE_SHOW_SAVED_COPY_BUTTON_ERROR, 23 NETWORK_ERROR_PAGE_SHOW_SAVED_COPY_BUTTON_ERROR = 6,
24 24
25 NETWORK_ERROR_PAGE_MORE_BUTTON_CLICKED, // More button clicked. 25 NETWORK_ERROR_PAGE_MORE_BUTTON_CLICKED = 7, // More button clicked.
26 26
27 NETWORK_ERROR_PAGE_BROWSER_INITIATED_RELOAD, // Reload from browser. 27 NETWORK_ERROR_PAGE_BROWSER_INITIATED_RELOAD = 8, // Reload from browser.
28 28
29 // Keep track of which button the user chooses when both are shown. 29 // Keep track of which button the user chooses when both are shown.
30 NETWORK_ERROR_PAGE_BOTH_BUTTONS_SHOWN, 30 NETWORK_ERROR_PAGE_BOTH_BUTTONS_SHOWN = 9,
31 NETWORK_ERROR_PAGE_BOTH_BUTTONS_RELOAD_CLICKED, 31 NETWORK_ERROR_PAGE_BOTH_BUTTONS_RELOAD_CLICKED = 10,
32 NETWORK_ERROR_PAGE_BOTH_BUTTONS_SHOWN_SAVED_COPY_CLICKED, 32 NETWORK_ERROR_PAGE_BOTH_BUTTONS_SHOWN_SAVED_COPY_CLICKED = 11,
33 33
34 NETWORK_ERROR_EASTER_EGG_ACTIVATED, // Easter egg activated. 34 NETWORK_ERROR_EASTER_EGG_ACTIVATED = 12, // Easter egg activated.
35 35
36 NETWORK_ERROR_PAGE_EVENT_MAX, 36 // For "Google cached copy" label experiment button.
37 NETWORK_ERROR_PAGE_CACHED_COPY_BUTTON_SHOWN = 13,
38 NETWORK_ERROR_PAGE_CACHED_COPY_BUTTON_CLICKED = 14,
39 NETWORK_ERROR_PAGE_CACHED_PAGE_BUTTON_SHOWN = 15,
40 NETWORK_ERROR_PAGE_CACHED_PAGE_BUTTON_CLICKED = 16,
41
42 NETWORK_ERROR_PAGE_EVENT_MAX = 17,
37 }; 43 };
38 44
39 // The status of a DNS probe. 45 // The status of a DNS probe.
40 // 46 //
41 // The DNS_PROBE_FINISHED_* values are used in histograms, so: 47 // The DNS_PROBE_FINISHED_* values are used in histograms, so:
42 // 1. FINISHED_UNKNOWN must remain the first FINISHED_* value. 48 // 1. FINISHED_UNKNOWN must remain the first FINISHED_* value.
43 // 2. FINISHED_* values must not be rearranged relative to FINISHED_UNKNOWN. 49 // 2. FINISHED_* values must not be rearranged relative to FINISHED_UNKNOWN.
44 // 3. New FINISHED_* values must be inserted at the end. 50 // 3. New FINISHED_* values must be inserted at the end.
45 // 4. New non-FINISHED_* values cannot be inserted. 51 // 4. New non-FINISHED_* values cannot be inserted.
46 enum DnsProbeStatus { 52 enum DnsProbeStatus {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Record specific error page events. 97 // Record specific error page events.
92 void RecordEvent(NetworkErrorPageEvent event); 98 void RecordEvent(NetworkErrorPageEvent event);
93 99
94 // The error domain used to pass DNS probe statuses to the localized error 100 // The error domain used to pass DNS probe statuses to the localized error
95 // code. 101 // code.
96 extern const char kDnsProbeErrorDomain[]; 102 extern const char kDnsProbeErrorDomain[];
97 103
98 } // namespace chrome_common_net 104 } // namespace chrome_common_net
99 105
100 #endif // COMPONENTS_ERROR_PAGE_COMMON_NET_ERROR_INFO_H_ 106 #endif // COMPONENTS_ERROR_PAGE_COMMON_NET_ERROR_INFO_H_
OLDNEW
« no previous file with comments | « chrome/renderer/resources/neterror.js ('k') | components/error_page/renderer/net_error_helper_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698