| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |