Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Side by Side Diff: components/error_page/common/net_error_info.h

Issue 1442433003: Add "Show saved copy" button in dino page when there's offline copy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update button color for "Show all saved pages" per UI review Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/error_page/common/BUILD.gn ('k') | components/error_page/common/offline_page_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698