OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_RENDERER_NET_ERROR_HELPER_CORE_H_ | 5 #ifndef COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ |
6 #define COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ | 6 #define COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 void OnFinishLoad(FrameType frame_type); | 155 void OnFinishLoad(FrameType frame_type); |
156 void OnStop(); | 156 void OnStop(); |
157 void OnWasShown(); | 157 void OnWasShown(); |
158 void OnWasHidden(); | 158 void OnWasHidden(); |
159 | 159 |
160 void CancelPendingFetches(); | 160 void CancelPendingFetches(); |
161 | 161 |
162 // Called when an error page have has been retrieved over the network. |html| | 162 // Called when an error page have has been retrieved over the network. |html| |
163 // must be an empty string on error. | 163 // must be an empty string on error. |
164 void OnNavigationCorrectionsFetched(const std::string& corrections, | 164 void OnNavigationCorrectionsFetched(const std::string& corrections, |
165 const std::string& accept_languages, | |
166 bool is_rtl); | 165 bool is_rtl); |
167 | 166 |
168 // Notifies |this| that network error information from the browser process | 167 // Notifies |this| that network error information from the browser process |
169 // has been received. | 168 // has been received. |
170 void OnNetErrorInfo(DnsProbeStatus status); | 169 void OnNetErrorInfo(DnsProbeStatus status); |
171 | 170 |
172 // Notifies |this| if it can use a local error diagnostics service through its | 171 // Notifies |this| if it can use a local error diagnostics service through its |
173 // delegate. | 172 // delegate. |
174 void OnSetCanShowNetworkDiagnosticsDialog( | 173 void OnSetCanShowNetworkDiagnosticsDialog( |
175 bool can_show_network_diagnostics_dialog); | 174 bool can_show_network_diagnostics_dialog); |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 | 299 |
301 // This value is set only when a navigation has been initiated from | 300 // This value is set only when a navigation has been initiated from |
302 // the error page. It is used to detect when such navigations result | 301 // the error page. It is used to detect when such navigations result |
303 // in errors. | 302 // in errors. |
304 Button navigation_from_button_; | 303 Button navigation_from_button_; |
305 }; | 304 }; |
306 | 305 |
307 } // namespace error_page | 306 } // namespace error_page |
308 | 307 |
309 #endif // COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ | 308 #endif // COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ |
OLD | NEW |