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

Side by Side Diff: chrome/renderer/net/net_error_helper.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
« no previous file with comments | « chrome/common/localized_error.cc ('k') | chrome/renderer/net/net_error_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ 5 #ifndef CHROME_RENDERER_NET_NET_ERROR_HELPER_H_
6 #define CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ 6 #define CHROME_RENDERER_NET_NET_ERROR_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 27 matching lines...) Expand all
38 : public content::RenderFrameObserver, 38 : public content::RenderFrameObserver,
39 public content::RenderFrameObserverTracker<NetErrorHelper>, 39 public content::RenderFrameObserverTracker<NetErrorHelper>,
40 public content::RenderProcessObserver, 40 public content::RenderProcessObserver,
41 public error_page::NetErrorHelperCore::Delegate { 41 public error_page::NetErrorHelperCore::Delegate {
42 public: 42 public:
43 explicit NetErrorHelper(content::RenderFrame* render_view); 43 explicit NetErrorHelper(content::RenderFrame* render_view);
44 ~NetErrorHelper() override; 44 ~NetErrorHelper() override;
45 45
46 // Button press notification from error page. 46 // Button press notification from error page.
47 void ReloadButtonPressed(); 47 void ReloadButtonPressed();
48 void LoadStaleButtonPressed(); 48 void ShowSavedCopyButtonPressed();
49 void MoreButtonPressed(); 49 void MoreButtonPressed();
50 50
51 // RenderFrameObserver implementation. 51 // RenderFrameObserver implementation.
52 void DidStartProvisionalLoad() override; 52 void DidStartProvisionalLoad() override;
53 void DidCommitProvisionalLoad(bool is_new_navigation, 53 void DidCommitProvisionalLoad(bool is_new_navigation,
54 bool is_same_page_navigation) override; 54 bool is_same_page_navigation) override;
55 void DidFinishLoad() override; 55 void DidFinishLoad() override;
56 void OnStop() override; 56 void OnStop() override;
57 void WasShown() override; 57 void WasShown() override;
58 void WasHidden() override; 58 void WasHidden() override;
(...skipping 24 matching lines...) Expand all
83 // Called when a link with the given tracking ID is pressed. 83 // Called when a link with the given tracking ID is pressed.
84 void TrackClick(int tracking_id); 84 void TrackClick(int tracking_id);
85 85
86 private: 86 private:
87 // NetErrorHelperCore::Delegate implementation: 87 // NetErrorHelperCore::Delegate implementation:
88 void GenerateLocalizedErrorPage( 88 void GenerateLocalizedErrorPage(
89 const blink::WebURLError& error, 89 const blink::WebURLError& error,
90 bool is_failed_post, 90 bool is_failed_post,
91 scoped_ptr<error_page::ErrorPageParams> params, 91 scoped_ptr<error_page::ErrorPageParams> params,
92 bool* reload_button_shown, 92 bool* reload_button_shown,
93 bool* load_stale_button_shown, 93 bool* show_saved_copy_button_shown,
94 std::string* html) const override; 94 std::string* html) const override;
95 void LoadErrorPageInMainFrame(const std::string& html, 95 void LoadErrorPageInMainFrame(const std::string& html,
96 const GURL& failed_url) override; 96 const GURL& failed_url) override;
97 void EnablePageHelperFunctions() override; 97 void EnablePageHelperFunctions() override;
98 void UpdateErrorPage(const blink::WebURLError& error, 98 void UpdateErrorPage(const blink::WebURLError& error,
99 bool is_failed_post) override; 99 bool is_failed_post) override;
100 void FetchNavigationCorrections( 100 void FetchNavigationCorrections(
101 const GURL& navigation_correction_url, 101 const GURL& navigation_correction_url,
102 const std::string& navigation_correction_request_body) override; 102 const std::string& navigation_correction_request_body) override;
103 void CancelFetchNavigationCorrections() override; 103 void CancelFetchNavigationCorrections() override;
(...skipping 17 matching lines...) Expand all
121 121
122 scoped_ptr<content::ResourceFetcher> correction_fetcher_; 122 scoped_ptr<content::ResourceFetcher> correction_fetcher_;
123 scoped_ptr<content::ResourceFetcher> tracking_fetcher_; 123 scoped_ptr<content::ResourceFetcher> tracking_fetcher_;
124 124
125 scoped_ptr<error_page::NetErrorHelperCore> core_; 125 scoped_ptr<error_page::NetErrorHelperCore> core_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(NetErrorHelper); 127 DISALLOW_COPY_AND_ASSIGN(NetErrorHelper);
128 }; 128 };
129 129
130 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ 130 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/common/localized_error.cc ('k') | chrome/renderer/net/net_error_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698