Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: chrome/browser/captive_portal/captive_portal_service.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/captive_portal/captive_portal_tab_reloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698