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 "chrome/common/net/net_error_info.h" | 10 #include "chrome/common/net/net_error_info.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 // NetErrorHelperCore::Delegate implementation: | 62 // NetErrorHelperCore::Delegate implementation: |
63 virtual void GenerateLocalizedErrorPage(const blink::WebURLError& error, | 63 virtual void GenerateLocalizedErrorPage(const blink::WebURLError& error, |
64 bool is_failed_post, | 64 bool is_failed_post, |
65 std::string* html) const OVERRIDE; | 65 std::string* html) const OVERRIDE; |
66 virtual void LoadErrorPageInMainFrame(const std::string& html, | 66 virtual void LoadErrorPageInMainFrame(const std::string& html, |
67 const GURL& failed_url) OVERRIDE; | 67 const GURL& failed_url) OVERRIDE; |
68 virtual void UpdateErrorPage(const blink::WebURLError& error, | 68 virtual void UpdateErrorPage(const blink::WebURLError& error, |
69 bool is_failed_post) OVERRIDE; | 69 bool is_failed_post) OVERRIDE; |
70 virtual void FetchErrorPage(const GURL& url) OVERRIDE; | 70 virtual void FetchErrorPage(const GURL& url) OVERRIDE; |
71 virtual void CancelFetchErrorPage() OVERRIDE; | 71 virtual void CancelFetchErrorPage() OVERRIDE; |
| 72 virtual void FetchAutoReloadPage(const GURL& url) OVERRIDE; |
| 73 virtual void CancelFetchAutoReloadPage() OVERRIDE; |
| 74 virtual NetErrorHelperCore::MockableOneShotTimer* |
| 75 NewMockableOneShotTimer() OVERRIDE; |
72 | 76 |
73 void OnNetErrorInfo(int status); | 77 void OnNetErrorInfo(int status); |
74 void OnSetAltErrorPageURL(const GURL& alternate_error_page_url); | 78 void OnSetAltErrorPageURL(const GURL& alternate_error_page_url); |
75 | 79 |
76 void OnAlternateErrorPageRetrieved(const blink::WebURLResponse& response, | 80 void OnAlternateErrorPageRetrieved(const blink::WebURLResponse& response, |
77 const std::string& data); | 81 const std::string& data); |
78 | 82 |
79 scoped_ptr<content::ResourceFetcher> alt_error_page_fetcher_; | 83 scoped_ptr<content::ResourceFetcher> alt_error_page_fetcher_; |
| 84 scoped_ptr<content::ResourceFetcher> auto_reload_page_fetcher_; |
80 | 85 |
81 NetErrorHelperCore core_; | 86 NetErrorHelperCore core_; |
82 }; | 87 }; |
83 | 88 |
84 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ | 89 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ |
OLD | NEW |