Chromium Code Reviews| 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 // 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 |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 26 | 26 |
| 27 NETWORK_ERROR_PAGE_BROWSER_INITIATED_RELOAD, // Reload from browser. | 27 NETWORK_ERROR_PAGE_BROWSER_INITIATED_RELOAD, // 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, |
| 31 NETWORK_ERROR_PAGE_BOTH_BUTTONS_RELOAD_CLICKED, | 31 NETWORK_ERROR_PAGE_BOTH_BUTTONS_RELOAD_CLICKED, |
| 32 NETWORK_ERROR_PAGE_BOTH_BUTTONS_SHOWN_SAVED_COPY_CLICKED, | 32 NETWORK_ERROR_PAGE_BOTH_BUTTONS_SHOWN_SAVED_COPY_CLICKED, |
| 33 | 33 |
| 34 NETWORK_ERROR_EASTER_EGG_ACTIVATED, // Easter egg activated. | 34 NETWORK_ERROR_EASTER_EGG_ACTIVATED, // Easter egg activated. |
| 35 | 35 |
| 36 // For "Google cached copy" button. | |
| 37 NETWORK_ERROR_PAGE_CACHED_COPY_BUTTON_SHOWN, | |
| 38 NETWORK_ERROR_PAGE_CACHED_COPY_BUTTON_CLICKED, | |
| 39 NETWORK_ERROR_PAGE_CACHED_PAGE_BUTTON_SHOWN, | |
| 40 NETWORK_ERROR_PAGE_CACHED_PAGE_BUTTON_CLICKED, | |
|
mmenke
2015/07/20 18:14:27
Is the only difference here the label? I don't th
mmenke
2015/07/20 18:14:27
These are presumably going to be removed at some p
edwardjung
2015/07/21 11:43:37
Makes sense. Added comments.
edwardjung
2015/07/21 11:43:37
Yes these would be removed once the experiment wou
| |
| 41 | |
| 36 NETWORK_ERROR_PAGE_EVENT_MAX, | 42 NETWORK_ERROR_PAGE_EVENT_MAX, |
| 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. |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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_ |
| OLD | NEW |