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

Side by Side Diff: components/error_page/renderer/net_error_helper_core.h

Issue 1051433002: Improvements to the offline intersitial and easter egg (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Darn it, keep forgetting CrOS has a separate offline template! Created 5 years, 8 months 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 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
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
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_
OLDNEW
« no previous file with comments | « components/error_page/common/net_error_info.h ('k') | components/error_page/renderer/net_error_helper_core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698