| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 virtual void DidStartProvisionalLoadForFrame( | 53 virtual void DidStartProvisionalLoadForFrame( |
| 54 content::RenderFrameHost* render_frame_host, | 54 content::RenderFrameHost* render_frame_host, |
| 55 const GURL& validated_url, | 55 const GURL& validated_url, |
| 56 bool is_error_page, | 56 bool is_error_page, |
| 57 bool is_iframe_srcdoc) OVERRIDE; | 57 bool is_iframe_srcdoc) OVERRIDE; |
| 58 | 58 |
| 59 virtual void DidCommitProvisionalLoadForFrame( | 59 virtual void DidCommitProvisionalLoadForFrame( |
| 60 content::RenderFrameHost* render_frame_host, | 60 content::RenderFrameHost* render_frame_host, |
| 61 const GURL& url, | 61 const GURL& url, |
| 62 bool url_is_unreachable, |
| 62 ui::PageTransition transition_type) OVERRIDE; | 63 ui::PageTransition transition_type) OVERRIDE; |
| 63 | 64 |
| 64 virtual void DidFailProvisionalLoad( | 65 virtual void DidFailProvisionalLoad( |
| 65 content::RenderFrameHost* render_frame_host, | 66 content::RenderFrameHost* render_frame_host, |
| 66 const GURL& validated_url, | 67 const GURL& validated_url, |
| 67 int error_code, | 68 int error_code, |
| 68 const base::string16& error_description) OVERRIDE; | 69 const base::string16& error_description) OVERRIDE; |
| 69 | 70 |
| 70 protected: | 71 protected: |
| 71 // |contents| is the WebContents of the tab this NetErrorTabHelper is | 72 // |contents| is the WebContents of the tab this NetErrorTabHelper is |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 BooleanPrefMember resolve_errors_with_web_service_; | 112 BooleanPrefMember resolve_errors_with_web_service_; |
| 112 | 113 |
| 113 base::WeakPtrFactory<NetErrorTabHelper> weak_factory_; | 114 base::WeakPtrFactory<NetErrorTabHelper> weak_factory_; |
| 114 | 115 |
| 115 DISALLOW_COPY_AND_ASSIGN(NetErrorTabHelper); | 116 DISALLOW_COPY_AND_ASSIGN(NetErrorTabHelper); |
| 116 }; | 117 }; |
| 117 | 118 |
| 118 } // namespace chrome_browser_net | 119 } // namespace chrome_browser_net |
| 119 | 120 |
| 120 #endif // CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ | 121 #endif // CHROME_BROWSER_NET_NET_ERROR_TAB_HELPER_H_ |
| OLD | NEW |