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_CAPTIVE_PORTAL_CAPTIVE_PORTAL_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_TAB_HELPER_H_ |
6 #define CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_TAB_HELPER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 friend class content::WebContentsUserData<CaptivePortalTabHelper>; | 117 friend class content::WebContentsUserData<CaptivePortalTabHelper>; |
118 explicit CaptivePortalTabHelper(content::WebContents* web_contents); | 118 explicit CaptivePortalTabHelper(content::WebContents* web_contents); |
119 | 119 |
120 // Called by Observe in response to the corresponding event. | 120 // Called by Observe in response to the corresponding event. |
121 void OnRedirect(int child_id, | 121 void OnRedirect(int child_id, |
122 ResourceType::Type resource_type, | 122 ResourceType::Type resource_type, |
123 const GURL& new_url); | 123 const GURL& new_url); |
124 | 124 |
125 // Called by Observe in response to the corresponding event. | 125 // Called by Observe in response to the corresponding event. |
126 void OnCaptivePortalResults(Result previous_result, Result result); | 126 void OnCaptivePortalResults(CaptivePortalResult previous_result, |
| 127 CaptivePortalResult result); |
127 | 128 |
128 void OnLoadAborted(); | 129 void OnLoadAborted(); |
129 | 130 |
130 // Called to indicate a tab is at, or is navigating to, the captive portal | 131 // Called to indicate a tab is at, or is navigating to, the captive portal |
131 // login page. | 132 // login page. |
132 void SetIsLoginTab(); | 133 void SetIsLoginTab(); |
133 | 134 |
134 // |this| takes ownership of |tab_reloader|. | 135 // |this| takes ownership of |tab_reloader|. |
135 void SetTabReloaderForTest(CaptivePortalTabReloader* tab_reloader); | 136 void SetTabReloaderForTest(CaptivePortalTabReloader* tab_reloader); |
136 | 137 |
(...skipping 26 matching lines...) Expand all Loading... |
163 content::RenderViewHost* provisional_render_view_host_; | 164 content::RenderViewHost* provisional_render_view_host_; |
164 | 165 |
165 content::NotificationRegistrar registrar_; | 166 content::NotificationRegistrar registrar_; |
166 | 167 |
167 DISALLOW_COPY_AND_ASSIGN(CaptivePortalTabHelper); | 168 DISALLOW_COPY_AND_ASSIGN(CaptivePortalTabHelper); |
168 }; | 169 }; |
169 | 170 |
170 } // namespace captive_portal | 171 } // namespace captive_portal |
171 | 172 |
172 #endif // CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_TAB_HELPER_H_ | 173 #endif // CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_TAB_HELPER_H_ |
OLD | NEW |