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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 content::RenderViewHost* render_view_host) OVERRIDE; | 65 content::RenderViewHost* render_view_host) OVERRIDE; |
66 | 66 |
67 virtual void DidFailProvisionalLoad( | 67 virtual void DidFailProvisionalLoad( |
68 int64 frame_id, | 68 int64 frame_id, |
69 bool is_main_frame, | 69 bool is_main_frame, |
70 const GURL& validated_url, | 70 const GURL& validated_url, |
71 int error_code, | 71 int error_code, |
72 const string16& error_description, | 72 const string16& error_description, |
73 content::RenderViewHost* render_view_host) OVERRIDE; | 73 content::RenderViewHost* render_view_host) OVERRIDE; |
74 | 74 |
75 virtual void DidStopLoading() OVERRIDE; | 75 virtual void DidStopLoading( |
| 76 content::RenderViewHost* render_view_host) OVERRIDE; |
76 | 77 |
77 // content::NotificationObserver: | 78 // content::NotificationObserver: |
78 virtual void Observe( | 79 virtual void Observe( |
79 int type, | 80 int type, |
80 const content::NotificationSource& source, | 81 const content::NotificationSource& source, |
81 const content::NotificationDetails& details) OVERRIDE; | 82 const content::NotificationDetails& details) OVERRIDE; |
82 | 83 |
83 // A "Login Tab" is a tab that was originally at a captive portal login | 84 // A "Login Tab" is a tab that was originally at a captive portal login |
84 // page. This is set to false when a captive portal is no longer detected. | 85 // page. This is set to false when a captive portal is no longer detected. |
85 bool IsLoginTab() const; | 86 bool IsLoginTab() const; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 int64 provisional_main_frame_id_; | 124 int64 provisional_main_frame_id_; |
124 | 125 |
125 content::NotificationRegistrar registrar_; | 126 content::NotificationRegistrar registrar_; |
126 | 127 |
127 DISALLOW_COPY_AND_ASSIGN(CaptivePortalTabHelper); | 128 DISALLOW_COPY_AND_ASSIGN(CaptivePortalTabHelper); |
128 }; | 129 }; |
129 | 130 |
130 } // namespace captive_portal | 131 } // namespace captive_portal |
131 | 132 |
132 #endif // CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_TAB_HELPER_H_ | 133 #endif // CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_TAB_HELPER_H_ |
OLD | NEW |