OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void set_dns_probe_status_snoop_callback_for_testing( | 46 void set_dns_probe_status_snoop_callback_for_testing( |
47 const DnsProbeStatusSnoopCallback& dns_probe_status_snoop_callback) { | 47 const DnsProbeStatusSnoopCallback& dns_probe_status_snoop_callback) { |
48 dns_probe_status_snoop_callback_ = dns_probe_status_snoop_callback; | 48 dns_probe_status_snoop_callback_ = dns_probe_status_snoop_callback; |
49 } | 49 } |
50 | 50 |
51 // content::WebContentsObserver implementation. | 51 // content::WebContentsObserver implementation. |
52 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override; | 52 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override; |
53 | 53 |
54 void DidStartNavigationToPendingEntry( | 54 void DidStartNavigationToPendingEntry( |
55 const GURL& url, | 55 const GURL& url, |
56 content::NavigationController::ReloadType reload_type) override; | 56 content::ReloadType reload_type) override; |
57 | 57 |
58 void DidStartProvisionalLoadForFrame( | 58 void DidStartProvisionalLoadForFrame( |
59 content::RenderFrameHost* render_frame_host, | 59 content::RenderFrameHost* render_frame_host, |
60 const GURL& validated_url, | 60 const GURL& validated_url, |
61 bool is_error_page, | 61 bool is_error_page, |
62 bool is_iframe_srcdoc) override; | 62 bool is_iframe_srcdoc) override; |
63 | 63 |
64 void DidCommitProvisionalLoadForFrame( | 64 void DidCommitProvisionalLoadForFrame( |
65 content::RenderFrameHost* render_frame_host, | 65 content::RenderFrameHost* render_frame_host, |
66 const GURL& url, | 66 const GURL& url, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 BooleanPrefMember resolve_errors_with_web_service_; | 135 BooleanPrefMember resolve_errors_with_web_service_; |
136 | 136 |
137 base::WeakPtrFactory<NetErrorTabHelper> weak_factory_; | 137 base::WeakPtrFactory<NetErrorTabHelper> weak_factory_; |
138 | 138 |
139 DISALLOW_COPY_AND_ASSIGN(NetErrorTabHelper); | 139 DISALLOW_COPY_AND_ASSIGN(NetErrorTabHelper); |
140 }; | 140 }; |
141 | 141 |
142 } // namespace chrome_browser_net | 142 } // namespace chrome_browser_net |
143 | 143 |
144 #endif // CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ | 144 #endif // CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ |
OLD | NEW |