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" |
11 #include "base/threading/non_thread_safe.h" | 11 #include "base/threading/non_thread_safe.h" |
12 #include "chrome/browser/captive_portal/captive_portal_service.h" | 12 #include "chrome/browser/captive_portal/captive_portal_service.h" |
13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
14 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
15 #include "content/public/browser/web_contents_observer.h" | 15 #include "content/public/browser/web_contents_observer.h" |
16 #include "content/public/browser/web_contents_user_data.h" | 16 #include "content/public/browser/web_contents_user_data.h" |
17 #include "webkit/common/resource_type.h" | 17 #include "content/public/common/resource_type.h" |
18 | 18 |
19 class GURL; | 19 class GURL; |
20 class Profile; | 20 class Profile; |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 class WebContents; | 23 class WebContents; |
24 } | 24 } |
25 | 25 |
26 namespace net { | 26 namespace net { |
27 class SSLInfo; | 27 class SSLInfo; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 private: | 102 private: |
103 friend class CaptivePortalBrowserTest; | 103 friend class CaptivePortalBrowserTest; |
104 friend class CaptivePortalTabHelperTest; | 104 friend class CaptivePortalTabHelperTest; |
105 | 105 |
106 friend class content::WebContentsUserData<CaptivePortalTabHelper>; | 106 friend class content::WebContentsUserData<CaptivePortalTabHelper>; |
107 explicit CaptivePortalTabHelper(content::WebContents* web_contents); | 107 explicit CaptivePortalTabHelper(content::WebContents* web_contents); |
108 | 108 |
109 // Called by Observe in response to the corresponding event. | 109 // Called by Observe in response to the corresponding event. |
110 void OnRedirect(int child_id, | 110 void OnRedirect(int child_id, |
111 ResourceType::Type resource_type, | 111 content::ResourceType::Type resource_type, |
112 const GURL& new_url); | 112 const GURL& new_url); |
113 | 113 |
114 // Called by Observe in response to the corresponding event. | 114 // Called by Observe in response to the corresponding event. |
115 void OnCaptivePortalResults( | 115 void OnCaptivePortalResults( |
116 captive_portal::CaptivePortalResult previous_result, | 116 captive_portal::CaptivePortalResult previous_result, |
117 captive_portal::CaptivePortalResult result); | 117 captive_portal::CaptivePortalResult result); |
118 | 118 |
119 void OnLoadAborted(); | 119 void OnLoadAborted(); |
120 | 120 |
121 // Called to indicate a tab is at, or is navigating to, the captive portal | 121 // Called to indicate a tab is at, or is navigating to, the captive portal |
(...skipping 30 matching lines...) Expand all Loading... |
152 // cross-process navitations. NULL when there's currently no provisional | 152 // cross-process navitations. NULL when there's currently no provisional |
153 // load. | 153 // load. |
154 content::RenderViewHost* provisional_render_view_host_; | 154 content::RenderViewHost* provisional_render_view_host_; |
155 | 155 |
156 content::NotificationRegistrar registrar_; | 156 content::NotificationRegistrar registrar_; |
157 | 157 |
158 DISALLOW_COPY_AND_ASSIGN(CaptivePortalTabHelper); | 158 DISALLOW_COPY_AND_ASSIGN(CaptivePortalTabHelper); |
159 }; | 159 }; |
160 | 160 |
161 #endif // CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_TAB_HELPER_H_ | 161 #endif // CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_TAB_HELPER_H_ |
OLD | NEW |