| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 // Sets a callback that will be called immediately after the helper sends | 40 // Sets a callback that will be called immediately after the helper sends |
| 41 // a NetErrorHelper IPC. (Used by the DNS probe browser test to know when to | 41 // a NetErrorHelper IPC. (Used by the DNS probe browser test to know when to |
| 42 // check the error page for updates, instead of polling.) | 42 // check the error page for updates, instead of polling.) |
| 43 void set_dns_probe_status_snoop_callback_for_testing( | 43 void set_dns_probe_status_snoop_callback_for_testing( |
| 44 const DnsProbeStatusSnoopCallback& dns_probe_status_snoop_callback) { | 44 const DnsProbeStatusSnoopCallback& dns_probe_status_snoop_callback) { |
| 45 dns_probe_status_snoop_callback_ = dns_probe_status_snoop_callback; | 45 dns_probe_status_snoop_callback_ = dns_probe_status_snoop_callback; |
| 46 } | 46 } |
| 47 | 47 |
| 48 // content::WebContentsObserver implementation. | 48 // content::WebContentsObserver implementation. |
| 49 virtual void DidStartNavigationToPendingEntry( |
| 50 const GURL& url, |
| 51 content::NavigationController::ReloadType reload_type) OVERRIDE; |
| 52 |
| 49 virtual void DidStartProvisionalLoadForFrame( | 53 virtual void DidStartProvisionalLoadForFrame( |
| 50 int64 frame_id, | 54 int64 frame_id, |
| 51 int64 parent_frame_id, | 55 int64 parent_frame_id, |
| 52 bool is_main_frame, | 56 bool is_main_frame, |
| 53 const GURL& validated_url, | 57 const GURL& validated_url, |
| 54 bool is_error_page, | 58 bool is_error_page, |
| 55 bool is_iframe_srcdoc, | 59 bool is_iframe_srcdoc, |
| 56 content::RenderViewHost* render_view_host) OVERRIDE; | 60 content::RenderViewHost* render_view_host) OVERRIDE; |
| 57 | 61 |
| 58 virtual void DidCommitProvisionalLoadForFrame( | 62 virtual void DidCommitProvisionalLoadForFrame( |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 // "Use a web service to resolve navigation errors" preference is required | 120 // "Use a web service to resolve navigation errors" preference is required |
| 117 // to allow probes. | 121 // to allow probes. |
| 118 BooleanPrefMember resolve_errors_with_web_service_; | 122 BooleanPrefMember resolve_errors_with_web_service_; |
| 119 | 123 |
| 120 DISALLOW_COPY_AND_ASSIGN(NetErrorTabHelper); | 124 DISALLOW_COPY_AND_ASSIGN(NetErrorTabHelper); |
| 121 }; | 125 }; |
| 122 | 126 |
| 123 } // namespace chrome_browser_net | 127 } // namespace chrome_browser_net |
| 124 | 128 |
| 125 #endif // CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ | 129 #endif // CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ |
| OLD | NEW |