OLD | NEW |
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 namespace error_page { | 8 namespace error_page { |
9 | 9 |
10 // Network error page events. Used for UMA statistics. | 10 // Network error page events. Used for UMA statistics. |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 // For "Google cached copy" button experiment. | 35 // For "Google cached copy" button experiment. |
36 NETWORK_ERROR_PAGE_CACHED_COPY_BUTTON_SHOWN = 13, | 36 NETWORK_ERROR_PAGE_CACHED_COPY_BUTTON_SHOWN = 13, |
37 NETWORK_ERROR_PAGE_CACHED_COPY_BUTTON_CLICKED = 14, | 37 NETWORK_ERROR_PAGE_CACHED_COPY_BUTTON_CLICKED = 14, |
38 // Obsolete. No longer experimenting with the label. | 38 // Obsolete. No longer experimenting with the label. |
39 // NETWORK_ERROR_PAGE_CACHED_PAGE_BUTTON_SHOWN = 15, | 39 // NETWORK_ERROR_PAGE_CACHED_PAGE_BUTTON_SHOWN = 15, |
40 // NETWORK_ERROR_PAGE_CACHED_PAGE_BUTTON_CLICKED = 16, | 40 // NETWORK_ERROR_PAGE_CACHED_PAGE_BUTTON_CLICKED = 16, |
41 | 41 |
42 NETWORK_ERROR_DIAGNOSE_BUTTON_CLICKED = 17, // Diagnose button clicked. | 42 NETWORK_ERROR_DIAGNOSE_BUTTON_CLICKED = 17, // Diagnose button clicked. |
43 | 43 |
44 // For the "Show all saved pages". | 44 // For the button to show all offline pages. |
45 NETWORK_ERROR_PAGE_SHOW_SAVED_PAGES_BUTTON_SHOWN = 18, | 45 NETWORK_ERROR_PAGE_SHOW_OFFLINE_PAGES_BUTTON_SHOWN = 18, |
46 NETWORK_ERROR_PAGE_SHOW_SAVED_PAGES_BUTTON_CLICKED = 19, | 46 NETWORK_ERROR_PAGE_SHOW_OFFLINE_PAGES_BUTTON_CLICKED = 19, |
47 NETWORK_ERROR_PAGE_SHOW_SAVED_PAGES_BUTTON_ERROR = 20, | 47 |
| 48 // For the button to show offline copy. |
| 49 NETWORK_ERROR_PAGE_SHOW_OFFLINE_COPY_BUTTON_SHOWN = 20, |
| 50 NETWORK_ERROR_PAGE_SHOW_OFFLINE_COPY_BUTTON_CLICKED = 21, |
48 | 51 |
49 NETWORK_ERROR_PAGE_EVENT_MAX, | 52 NETWORK_ERROR_PAGE_EVENT_MAX, |
50 }; | 53 }; |
51 | 54 |
52 // The status of a DNS probe. | 55 // The status of a DNS probe. |
53 // | 56 // |
54 // The DNS_PROBE_FINISHED_* values are used in histograms, so: | 57 // The DNS_PROBE_FINISHED_* values are used in histograms, so: |
55 // 1. FINISHED_UNKNOWN must remain the first FINISHED_* value. | 58 // 1. FINISHED_UNKNOWN must remain the first FINISHED_* value. |
56 // 2. FINISHED_* values must not be rearranged relative to FINISHED_UNKNOWN. | 59 // 2. FINISHED_* values must not be rearranged relative to FINISHED_UNKNOWN. |
57 // 3. New FINISHED_* values must be inserted at the end. | 60 // 3. New FINISHED_* values must be inserted at the end. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // Record specific error page events. | 107 // Record specific error page events. |
105 void RecordEvent(NetworkErrorPageEvent event); | 108 void RecordEvent(NetworkErrorPageEvent event); |
106 | 109 |
107 // The error domain used to pass DNS probe statuses to the localized error | 110 // The error domain used to pass DNS probe statuses to the localized error |
108 // code. | 111 // code. |
109 extern const char kDnsProbeErrorDomain[]; | 112 extern const char kDnsProbeErrorDomain[]; |
110 | 113 |
111 } // namespace error_page | 114 } // namespace error_page |
112 | 115 |
113 #endif // COMPONENTS_ERROR_PAGE_COMMON_NET_ERROR_INFO_H_ | 116 #endif // COMPONENTS_ERROR_PAGE_COMMON_NET_ERROR_INFO_H_ |
OLD | NEW |