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

Side by Side Diff: chrome/renderer/net/net_error_helper.h

Issue 2588253002: Enable download page action for error page (Closed)
Patch Set: Address download feedback Created 3 years, 11 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/render_messages.h ('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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void FetchNavigationCorrections( 105 void FetchNavigationCorrections(
106 const GURL& navigation_correction_url, 106 const GURL& navigation_correction_url,
107 const std::string& navigation_correction_request_body) override; 107 const std::string& navigation_correction_request_body) override;
108 void CancelFetchNavigationCorrections() override; 108 void CancelFetchNavigationCorrections() override;
109 void SendTrackingRequest(const GURL& tracking_url, 109 void SendTrackingRequest(const GURL& tracking_url,
110 const std::string& tracking_request_body) override; 110 const std::string& tracking_request_body) override;
111 void ReloadPage(bool bypass_cache) override; 111 void ReloadPage(bool bypass_cache) override;
112 void LoadPageFromCache(const GURL& page_url) override; 112 void LoadPageFromCache(const GURL& page_url) override;
113 void DiagnoseError(const GURL& page_url) override; 113 void DiagnoseError(const GURL& page_url) override;
114 void DownloadPageLater() override; 114 void DownloadPageLater() override;
115 void SetIsShowingDownloadButton(bool show) override;
115 116
116 void OnNetErrorInfo(int status); 117 void OnNetErrorInfo(int status);
117 void OnSetNavigationCorrectionInfo(const GURL& navigation_correction_url, 118 void OnSetNavigationCorrectionInfo(const GURL& navigation_correction_url,
118 const std::string& language, 119 const std::string& language,
119 const std::string& country_code, 120 const std::string& country_code,
120 const std::string& api_key, 121 const std::string& api_key,
121 const GURL& search_url); 122 const GURL& search_url);
122 123
123 void OnNavigationCorrectionsFetched(const blink::WebURLResponse& response, 124 void OnNavigationCorrectionsFetched(const blink::WebURLResponse& response,
124 const std::string& data); 125 const std::string& data);
(...skipping 19 matching lines...) Expand all
144 // Weak factory for vending a weak pointer to a NetErrorPageController. Weak 145 // Weak factory for vending a weak pointer to a NetErrorPageController. Weak
145 // pointers are invalidated on each commit, to prevent getting messages from 146 // pointers are invalidated on each commit, to prevent getting messages from
146 // Controllers used for the previous commit that haven't yet been cleaned up. 147 // Controllers used for the previous commit that haven't yet been cleaned up.
147 base::WeakPtrFactory<NetErrorPageController::Delegate> 148 base::WeakPtrFactory<NetErrorPageController::Delegate>
148 weak_controller_delegate_factory_; 149 weak_controller_delegate_factory_;
149 150
150 DISALLOW_COPY_AND_ASSIGN(NetErrorHelper); 151 DISALLOW_COPY_AND_ASSIGN(NetErrorHelper);
151 }; 152 };
152 153
153 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ 154 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/net/net_error_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698