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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 void TrackClick(int tracking_id); | 82 void TrackClick(int tracking_id); |
83 | 83 |
84 private: | 84 private: |
85 // NetErrorHelperCore::Delegate implementation: | 85 // NetErrorHelperCore::Delegate implementation: |
86 void GenerateLocalizedErrorPage( | 86 void GenerateLocalizedErrorPage( |
87 const blink::WebURLError& error, | 87 const blink::WebURLError& error, |
88 bool is_failed_post, | 88 bool is_failed_post, |
89 scoped_ptr<error_page::ErrorPageParams> params, | 89 scoped_ptr<error_page::ErrorPageParams> params, |
90 bool* reload_button_shown, | 90 bool* reload_button_shown, |
91 bool* show_saved_copy_button_shown, | 91 bool* show_saved_copy_button_shown, |
| 92 bool* show_cached_copy_button_shown, |
| 93 bool* show_cached_page_button_shown, |
92 std::string* html) const override; | 94 std::string* html) const override; |
93 void LoadErrorPageInMainFrame(const std::string& html, | 95 void LoadErrorPageInMainFrame(const std::string& html, |
94 const GURL& failed_url) override; | 96 const GURL& failed_url) override; |
95 void EnablePageHelperFunctions() override; | 97 void EnablePageHelperFunctions() override; |
96 void UpdateErrorPage(const blink::WebURLError& error, | 98 void UpdateErrorPage(const blink::WebURLError& error, |
97 bool is_failed_post) override; | 99 bool is_failed_post) override; |
98 void FetchNavigationCorrections( | 100 void FetchNavigationCorrections( |
99 const GURL& navigation_correction_url, | 101 const GURL& navigation_correction_url, |
100 const std::string& navigation_correction_request_body) override; | 102 const std::string& navigation_correction_request_body) override; |
101 void CancelFetchNavigationCorrections() override; | 103 void CancelFetchNavigationCorrections() override; |
(...skipping 17 matching lines...) Expand all Loading... |
119 | 121 |
120 scoped_ptr<content::ResourceFetcher> correction_fetcher_; | 122 scoped_ptr<content::ResourceFetcher> correction_fetcher_; |
121 scoped_ptr<content::ResourceFetcher> tracking_fetcher_; | 123 scoped_ptr<content::ResourceFetcher> tracking_fetcher_; |
122 | 124 |
123 scoped_ptr<error_page::NetErrorHelperCore> core_; | 125 scoped_ptr<error_page::NetErrorHelperCore> core_; |
124 | 126 |
125 DISALLOW_COPY_AND_ASSIGN(NetErrorHelper); | 127 DISALLOW_COPY_AND_ASSIGN(NetErrorHelper); |
126 }; | 128 }; |
127 | 129 |
128 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ | 130 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ |
OLD | NEW |