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_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_SERVICE_H_ |
6 #define CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_SERVICE_H_ | 6 #define CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_SERVICE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/prefs/pref_member.h" | 10 #include "base/prefs/pref_member.h" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 scoped_ptr<net::BackoffEntry> backoff_entry_; | 183 scoped_ptr<net::BackoffEntry> backoff_entry_; |
184 | 184 |
185 // URL that returns a 204 response code when connected to the Internet. | 185 // URL that returns a 204 response code when connected to the Internet. |
186 GURL test_url_; | 186 GURL test_url_; |
187 | 187 |
188 // The pref member for whether navigation errors should be resolved with a web | 188 // The pref member for whether navigation errors should be resolved with a web |
189 // service. Actually called "alternate_error_pages", since it's also used for | 189 // service. Actually called "alternate_error_pages", since it's also used for |
190 // the Link Doctor. | 190 // the Link Doctor. |
191 BooleanPrefMember resolve_errors_with_web_service_; | 191 BooleanPrefMember resolve_errors_with_web_service_; |
192 | 192 |
193 base::OneShotTimer<CaptivePortalService> check_captive_portal_timer_; | 193 base::OneShotTimer check_captive_portal_timer_; |
194 | 194 |
195 static TestingState testing_state_; | 195 static TestingState testing_state_; |
196 | 196 |
197 // Test tick clock used by unit tests. | 197 // Test tick clock used by unit tests. |
198 base::TickClock* tick_clock_for_testing_; // Not owned. | 198 base::TickClock* tick_clock_for_testing_; // Not owned. |
199 | 199 |
200 DISALLOW_COPY_AND_ASSIGN(CaptivePortalService); | 200 DISALLOW_COPY_AND_ASSIGN(CaptivePortalService); |
201 }; | 201 }; |
202 | 202 |
203 #endif // CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_SERVICE_H_ | 203 #endif // CHROME_BROWSER_CAPTIVE_PORTAL_CAPTIVE_PORTAL_SERVICE_H_ |
OLD | NEW |