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". |
| 45 NETWORK_ERROR_PAGE_SHOW_SAVED_PAGES_BUTTON_SHOWN = 18, |
| 46 NETWORK_ERROR_PAGE_SHOW_SAVED_PAGES_BUTTON_CLICKED = 19, |
| 47 NETWORK_ERROR_PAGE_SHOW_SAVED_PAGES_BUTTON_ERROR = 20, |
| 48 |
44 NETWORK_ERROR_PAGE_EVENT_MAX, | 49 NETWORK_ERROR_PAGE_EVENT_MAX, |
45 }; | 50 }; |
46 | 51 |
47 // The status of a DNS probe. | 52 // The status of a DNS probe. |
48 // | 53 // |
49 // The DNS_PROBE_FINISHED_* values are used in histograms, so: | 54 // The DNS_PROBE_FINISHED_* values are used in histograms, so: |
50 // 1. FINISHED_UNKNOWN must remain the first FINISHED_* value. | 55 // 1. FINISHED_UNKNOWN must remain the first FINISHED_* value. |
51 // 2. FINISHED_* values must not be rearranged relative to FINISHED_UNKNOWN. | 56 // 2. FINISHED_* values must not be rearranged relative to FINISHED_UNKNOWN. |
52 // 3. New FINISHED_* values must be inserted at the end. | 57 // 3. New FINISHED_* values must be inserted at the end. |
53 // 4. New non-FINISHED_* values cannot be inserted. | 58 // 4. New non-FINISHED_* values cannot be inserted. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // Record specific error page events. | 104 // Record specific error page events. |
100 void RecordEvent(NetworkErrorPageEvent event); | 105 void RecordEvent(NetworkErrorPageEvent event); |
101 | 106 |
102 // The error domain used to pass DNS probe statuses to the localized error | 107 // The error domain used to pass DNS probe statuses to the localized error |
103 // code. | 108 // code. |
104 extern const char kDnsProbeErrorDomain[]; | 109 extern const char kDnsProbeErrorDomain[]; |
105 | 110 |
106 } // namespace error_page | 111 } // namespace error_page |
107 | 112 |
108 #endif // COMPONENTS_ERROR_PAGE_COMMON_NET_ERROR_INFO_H_ | 113 #endif // COMPONENTS_ERROR_PAGE_COMMON_NET_ERROR_INFO_H_ |
OLD | NEW |