| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 void UpdateErrorPage(const blink::WebURLError& error, | 98 void UpdateErrorPage(const blink::WebURLError& error, |
| 99 bool is_failed_post, | 99 bool is_failed_post, |
| 100 bool can_use_local_diagnostics_service, | 100 bool can_use_local_diagnostics_service, |
| 101 bool has_offline_pages) override; | 101 bool has_offline_pages) override; |
| 102 void FetchNavigationCorrections( | 102 void FetchNavigationCorrections( |
| 103 const GURL& navigation_correction_url, | 103 const GURL& navigation_correction_url, |
| 104 const std::string& navigation_correction_request_body) override; | 104 const std::string& navigation_correction_request_body) override; |
| 105 void CancelFetchNavigationCorrections() override; | 105 void CancelFetchNavigationCorrections() override; |
| 106 void SendTrackingRequest(const GURL& tracking_url, | 106 void SendTrackingRequest(const GURL& tracking_url, |
| 107 const std::string& tracking_request_body) override; | 107 const std::string& tracking_request_body) override; |
| 108 void ReloadPage(bool ignore_cache) override; | 108 void ReloadPage(bool bypass_cache) override; |
| 109 void LoadPageFromCache(const GURL& page_url) override; | 109 void LoadPageFromCache(const GURL& page_url) override; |
| 110 void DiagnoseError(const GURL& page_url) override; | 110 void DiagnoseError(const GURL& page_url) override; |
| 111 void ShowOfflinePages() override; | 111 void ShowOfflinePages() override; |
| 112 | 112 |
| 113 void OnNetErrorInfo(int status); | 113 void OnNetErrorInfo(int status); |
| 114 void OnSetCanShowNetworkDiagnosticsDialog( | 114 void OnSetCanShowNetworkDiagnosticsDialog( |
| 115 bool can_use_local_diagnostics_service); | 115 bool can_use_local_diagnostics_service); |
| 116 void OnSetNavigationCorrectionInfo(const GURL& navigation_correction_url, | 116 void OnSetNavigationCorrectionInfo(const GURL& navigation_correction_url, |
| 117 const std::string& language, | 117 const std::string& language, |
| 118 const std::string& country_code, | 118 const std::string& country_code, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 139 // Weak factory for vending a weak pointer to a NetErrorPageController. Weak | 139 // Weak factory for vending a weak pointer to a NetErrorPageController. Weak |
| 140 // pointers are invalidated on each commit, to prevent getting messages from | 140 // pointers are invalidated on each commit, to prevent getting messages from |
| 141 // Controllers used for the previous commit that haven't yet been cleaned up. | 141 // Controllers used for the previous commit that haven't yet been cleaned up. |
| 142 base::WeakPtrFactory<NetErrorPageController::Delegate> | 142 base::WeakPtrFactory<NetErrorPageController::Delegate> |
| 143 weak_controller_delegate_factory_; | 143 weak_controller_delegate_factory_; |
| 144 | 144 |
| 145 DISALLOW_COPY_AND_ASSIGN(NetErrorHelper); | 145 DISALLOW_COPY_AND_ASSIGN(NetErrorHelper); |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ | 148 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ |
| OLD | NEW |