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 |
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, // Error pages shown. |
14 | 14 |
15 NETWORK_ERROR_PAGE_RELOAD_BUTTON_SHOWN, // Reload buttons shown. | 15 NETWORK_ERROR_PAGE_RELOAD_BUTTON_SHOWN, // Reload buttons shown. |
16 NETWORK_ERROR_PAGE_RELOAD_BUTTON_CLICKED, // Reload button clicked. | 16 NETWORK_ERROR_PAGE_RELOAD_BUTTON_CLICKED, // Reload button clicked. |
17 NETWORK_ERROR_PAGE_RELOAD_BUTTON_ERROR, // Reload button clicked | 17 NETWORK_ERROR_PAGE_RELOAD_BUTTON_ERROR, // Reload button clicked |
18 // -> error. | 18 // -> error. |
19 | 19 |
20 NETWORK_ERROR_PAGE_LOAD_STALE_BUTTON_SHOWN, // Load stale buttons shown. | 20 // Same for the "Show saved copy" button. |
21 NETWORK_ERROR_PAGE_LOAD_STALE_BUTTON_CLICKED, // Load stale button clicked. | 21 NETWORK_ERROR_PAGE_SHOW_SAVED_COPY_BUTTON_SHOWN, |
22 NETWORK_ERROR_PAGE_LOAD_STALE_BUTTON_ERROR, // Load stale buttons -> error. | 22 NETWORK_ERROR_PAGE_SHOW_SAVED_COPY_BUTTON_CLICKED, |
| 23 NETWORK_ERROR_PAGE_SHOW_SAVED_COPY_BUTTON_ERROR, |
23 | 24 |
24 NETWORK_ERROR_PAGE_MORE_BUTTON_CLICKED, // More button clicked. | 25 NETWORK_ERROR_PAGE_MORE_BUTTON_CLICKED, // More button clicked. |
25 | 26 |
26 NETWORK_ERROR_PAGE_BROWSER_INITIATED_RELOAD, // Reload from browser. | 27 NETWORK_ERROR_PAGE_BROWSER_INITIATED_RELOAD, // Reload from browser. |
27 | 28 |
28 NETWORK_ERROR_PAGE_EVENT_MAX, | 29 NETWORK_ERROR_PAGE_EVENT_MAX, |
29 }; | 30 }; |
30 | 31 |
31 // The status of a DNS probe. | 32 // The status of a DNS probe. |
32 // | 33 // |
(...skipping 50 matching lines...) Loading... |
83 // Record specific error page events. | 84 // Record specific error page events. |
84 void RecordEvent(NetworkErrorPageEvent event); | 85 void RecordEvent(NetworkErrorPageEvent event); |
85 | 86 |
86 // The error domain used to pass DNS probe statuses to the localized error | 87 // The error domain used to pass DNS probe statuses to the localized error |
87 // code. | 88 // code. |
88 extern const char kDnsProbeErrorDomain[]; | 89 extern const char kDnsProbeErrorDomain[]; |
89 | 90 |
90 } // namespace chrome_common_net | 91 } // namespace chrome_common_net |
91 | 92 |
92 #endif // COMPONENTS_ERROR_PAGE_COMMON_NET_ERROR_INFO_H_ | 93 #endif // COMPONENTS_ERROR_PAGE_COMMON_NET_ERROR_INFO_H_ |
OLD | NEW |