| 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 29 matching lines...) Expand all Loading... |
| 40 enum PageType { | 40 enum PageType { |
| 41 NON_ERROR_PAGE, | 41 NON_ERROR_PAGE, |
| 42 ERROR_PAGE, | 42 ERROR_PAGE, |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 enum Button { | 45 enum Button { |
| 46 NO_BUTTON, | 46 NO_BUTTON, |
| 47 RELOAD_BUTTON, | 47 RELOAD_BUTTON, |
| 48 SHOW_SAVED_COPY_BUTTON, | 48 SHOW_SAVED_COPY_BUTTON, |
| 49 MORE_BUTTON, | 49 MORE_BUTTON, |
| 50 EASTER_EGG, |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 // The Delegate handles all interaction with the RenderView, WebFrame, and | 53 // The Delegate handles all interaction with the RenderView, WebFrame, and |
| 53 // the network, as well as the generation of error pages. | 54 // the network, as well as the generation of error pages. |
| 54 class Delegate { | 55 class Delegate { |
| 55 public: | 56 public: |
| 56 // Generates an error page's HTML for the given error. | 57 // Generates an error page's HTML for the given error. |
| 57 virtual void GenerateLocalizedErrorPage( | 58 virtual void GenerateLocalizedErrorPage( |
| 58 const blink::WebURLError& error, | 59 const blink::WebURLError& error, |
| 59 bool is_failed_post, | 60 bool is_failed_post, |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 266 |
| 266 // This value is set only when a navigation has been initiated from | 267 // This value is set only when a navigation has been initiated from |
| 267 // the error page. It is used to detect when such navigations result | 268 // the error page. It is used to detect when such navigations result |
| 268 // in errors. | 269 // in errors. |
| 269 Button navigation_from_button_; | 270 Button navigation_from_button_; |
| 270 }; | 271 }; |
| 271 | 272 |
| 272 } // namespace error_page | 273 } // namespace error_page |
| 273 | 274 |
| 274 #endif // COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ | 275 #endif // COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ |
| OLD | NEW |