OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ | 5 #ifndef COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ |
6 #define COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ | 6 #define COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "components/error_page/common/net_error_info.h" | 15 #include "components/error_page/common/net_error_info.h" |
16 #include "url/gurl.h" | 16 #include "url/gurl.h" |
17 | 17 |
18 namespace base { | |
19 class ListValue; | |
20 } | |
21 | |
22 namespace blink { | 18 namespace blink { |
23 struct WebURLError; | 19 struct WebURLError; |
24 } | 20 } |
25 | 21 |
26 namespace error_page { | 22 namespace error_page { |
27 | 23 |
28 struct ErrorPageParams; | 24 struct ErrorPageParams; |
29 | 25 |
30 // Class that contains the logic for how the NetErrorHelper. This allows for | 26 // Class that contains the logic for how the NetErrorHelper. This allows for |
31 // testing the logic without a RenderView or WebFrame, which are difficult to | 27 // testing the logic without a RenderView or WebFrame, which are difficult to |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 | 281 |
286 // This value is set only when a navigation has been initiated from | 282 // This value is set only when a navigation has been initiated from |
287 // the error page. It is used to detect when such navigations result | 283 // the error page. It is used to detect when such navigations result |
288 // in errors. | 284 // in errors. |
289 Button navigation_from_button_; | 285 Button navigation_from_button_; |
290 }; | 286 }; |
291 | 287 |
292 } // namespace error_page | 288 } // namespace error_page |
293 | 289 |
294 #endif // COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ | 290 #endif // COMPONENTS_ERROR_PAGE_RENDERER_NET_ERROR_HELPER_CORE_H_ |
OLD | NEW |