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 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "chrome/common/network_diagnostics.mojom.h" | 14 #include "chrome/common/network_diagnostics.mojom.h" |
15 #include "chrome/renderer/net/net_error_page_controller.h" | 15 #include "chrome/renderer/net/net_error_page_controller.h" |
16 #include "components/error_page/common/net_error_info.h" | 16 #include "components/error_page/common/net_error_info.h" |
17 #include "components/error_page/renderer/net_error_helper_core.h" | 17 #include "components/error_page/renderer/net_error_helper_core.h" |
18 #include "content/public/renderer/render_frame_observer.h" | 18 #include "content/public/renderer/render_frame_observer.h" |
19 #include "content/public/renderer/render_frame_observer_tracker.h" | 19 #include "content/public/renderer/render_frame_observer_tracker.h" |
20 #include "content/public/renderer/render_thread_observer.h" | 20 #include "content/public/renderer/render_thread_observer.h" |
21 #include "mojo/public/cpp/bindings/associated_binding.h" | 21 #include "mojo/public/cpp/bindings/associated_binding.h" |
22 | 22 |
23 class GURL; | 23 class GURL; |
24 | 24 |
25 namespace blink { | 25 namespace blink { |
26 class WebFrame; | |
27 class WebURLResponse; | 26 class WebURLResponse; |
28 struct WebURLError; | 27 struct WebURLError; |
29 } | 28 } |
30 | 29 |
31 namespace content { | 30 namespace content { |
32 class ResourceFetcher; | 31 class ResourceFetcher; |
33 } | 32 } |
34 | 33 |
35 namespace error_page { | 34 namespace error_page { |
36 struct ErrorPageParams; | 35 struct ErrorPageParams; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // Weak factory for vending a weak pointer to a NetErrorPageController. Weak | 144 // Weak factory for vending a weak pointer to a NetErrorPageController. Weak |
146 // pointers are invalidated on each commit, to prevent getting messages from | 145 // pointers are invalidated on each commit, to prevent getting messages from |
147 // Controllers used for the previous commit that haven't yet been cleaned up. | 146 // Controllers used for the previous commit that haven't yet been cleaned up. |
148 base::WeakPtrFactory<NetErrorPageController::Delegate> | 147 base::WeakPtrFactory<NetErrorPageController::Delegate> |
149 weak_controller_delegate_factory_; | 148 weak_controller_delegate_factory_; |
150 | 149 |
151 DISALLOW_COPY_AND_ASSIGN(NetErrorHelper); | 150 DISALLOW_COPY_AND_ASSIGN(NetErrorHelper); |
152 }; | 151 }; |
153 | 152 |
154 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ | 153 #endif // CHROME_RENDERER_NET_NET_ERROR_HELPER_H_ |
OLD | NEW |