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

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

Issue 961443002: Three way experiment for "Show saved copy" button. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: histograms fix Created 5 years, 9 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 27 matching lines...) Expand all
38 }; 38 };
39 39
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 LOAD_STALE_BUTTON, 48 SHOW_SAVED_COPY_BUTTON,
49 MORE_BUTTON, 49 MORE_BUTTON,
50 }; 50 };
51 51
52 // The Delegate handles all interaction with the RenderView, WebFrame, and 52 // The Delegate handles all interaction with the RenderView, WebFrame, and
53 // the network, as well as the generation of error pages. 53 // the network, as well as the generation of error pages.
54 class Delegate { 54 class Delegate {
55 public: 55 public:
56 // Generates an error page's HTML for the given error. 56 // Generates an error page's HTML for the given error.
57 virtual void GenerateLocalizedErrorPage( 57 virtual void GenerateLocalizedErrorPage(
58 const blink::WebURLError& error, 58 const blink::WebURLError& error,
59 bool is_failed_post, 59 bool is_failed_post,
60 scoped_ptr<error_page::ErrorPageParams> params, 60 scoped_ptr<error_page::ErrorPageParams> params,
61 bool* reload_button_shown, 61 bool* reload_button_shown,
62 bool* load_stale_button_shown, 62 bool* show_saved_copy_button_shown,
63 std::string* html) const = 0; 63 std::string* html) const = 0;
64 64
65 // Loads the given HTML in the main frame for use as an error page. 65 // Loads the given HTML in the main frame for use as an error page.
66 virtual void LoadErrorPageInMainFrame(const std::string& html, 66 virtual void LoadErrorPageInMainFrame(const std::string& html,
67 const GURL& failed_url) = 0; 67 const GURL& failed_url) = 0;
68 68
69 // Create extra Javascript bindings in the error page. 69 // Create extra Javascript bindings in the error page.
70 virtual void EnablePageHelperFunctions() = 0; 70 virtual void EnablePageHelperFunctions() = 0;
71 71
72 // Updates the currently displayed error page with a new error code. The 72 // Updates the currently displayed error page with a new error code. The
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 // This value is set only when a navigation has been initiated from 266 // 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 267 // the error page. It is used to detect when such navigations result
268 // in errors. 268 // in errors.
269 Button navigation_from_button_; 269 Button navigation_from_button_;
270 }; 270 };
271 271
272 } // namespace error_page 272 } // namespace error_page
273 273
274 #endif // COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ 274 #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