| 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 28 matching lines...) Expand all Loading... |
| 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 button to show all offline pages. | 44 // For the button to show all offline pages. |
| 45 NETWORK_ERROR_PAGE_SHOW_OFFLINE_PAGES_BUTTON_SHOWN = 18, | 45 NETWORK_ERROR_PAGE_SHOW_OFFLINE_PAGES_BUTTON_SHOWN = 18, |
| 46 NETWORK_ERROR_PAGE_SHOW_OFFLINE_PAGES_BUTTON_CLICKED = 19, | 46 NETWORK_ERROR_PAGE_SHOW_OFFLINE_PAGES_BUTTON_CLICKED = 19, |
| 47 | 47 |
| 48 // For the button to show offline copy. | 48 // For the button to show offline copy. |
| 49 NETWORK_ERROR_PAGE_SHOW_OFFLINE_COPY_BUTTON_SHOWN = 20, | 49 // Obsolete. No longer showing this. |
| 50 NETWORK_ERROR_PAGE_SHOW_OFFLINE_COPY_BUTTON_CLICKED = 21, | 50 // NETWORK_ERROR_PAGE_SHOW_OFFLINE_COPY_BUTTON_SHOWN = 20, |
| 51 // NETWORK_ERROR_PAGE_SHOW_OFFLINE_COPY_BUTTON_CLICKED = 21, |
| 51 | 52 |
| 52 NETWORK_ERROR_PAGE_EVENT_MAX, | 53 NETWORK_ERROR_PAGE_EVENT_MAX, |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 // The status of a DNS probe. | 56 // The status of a DNS probe. |
| 56 // | 57 // |
| 57 // The DNS_PROBE_FINISHED_* values are used in histograms, so: | 58 // The DNS_PROBE_FINISHED_* values are used in histograms, so: |
| 58 // 1. FINISHED_UNKNOWN must remain the first FINISHED_* value. | 59 // 1. FINISHED_UNKNOWN must remain the first FINISHED_* value. |
| 59 // 2. FINISHED_* values must not be rearranged relative to FINISHED_UNKNOWN. | 60 // 2. FINISHED_* values must not be rearranged relative to FINISHED_UNKNOWN. |
| 60 // 3. New FINISHED_* values must be inserted at the end. | 61 // 3. New FINISHED_* values must be inserted at the end. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 // Record specific error page events. | 108 // Record specific error page events. |
| 108 void RecordEvent(NetworkErrorPageEvent event); | 109 void RecordEvent(NetworkErrorPageEvent event); |
| 109 | 110 |
| 110 // The error domain used to pass DNS probe statuses to the localized error | 111 // The error domain used to pass DNS probe statuses to the localized error |
| 111 // code. | 112 // code. |
| 112 extern const char kDnsProbeErrorDomain[]; | 113 extern const char kDnsProbeErrorDomain[]; |
| 113 | 114 |
| 114 } // namespace error_page | 115 } // namespace error_page |
| 115 | 116 |
| 116 #endif // COMPONENTS_ERROR_PAGE_COMMON_NET_ERROR_INFO_H_ | 117 #endif // COMPONENTS_ERROR_PAGE_COMMON_NET_ERROR_INFO_H_ |
| OLD | NEW |