OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 namespace net { | 28 namespace net { |
29 class URLRequestContextGetter; | 29 class URLRequestContextGetter; |
30 } | 30 } |
31 | 31 |
32 namespace chromeos { | 32 namespace chromeos { |
33 | 33 |
34 class NetworkState; | 34 class NetworkState; |
35 | 35 |
36 // This class handles all notifications about network changes from | 36 // This class handles all notifications about network changes from |
37 // NetworkLibrary and delegates portal detection for the default | 37 // NetworkStateHandler and delegates portal detection for the default |
38 // network to CaptivePortalService. | 38 // network to CaptivePortalService. |
39 class NetworkPortalDetectorImpl | 39 class NetworkPortalDetectorImpl |
40 : public NetworkPortalDetector, | 40 : public NetworkPortalDetector, |
41 public base::NonThreadSafe, | 41 public base::NonThreadSafe, |
42 public chromeos::NetworkStateHandlerObserver, | 42 public chromeos::NetworkStateHandlerObserver, |
43 public content::NotificationObserver { | 43 public content::NotificationObserver { |
44 public: | 44 public: |
45 explicit NetworkPortalDetectorImpl( | 45 explicit NetworkPortalDetectorImpl( |
46 const scoped_refptr<net::URLRequestContextGetter>& request_context); | 46 const scoped_refptr<net::URLRequestContextGetter>& request_context); |
47 virtual ~NetworkPortalDetectorImpl(); | 47 virtual ~NetworkPortalDetectorImpl(); |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 bool request_timeout_for_testing_initialized_; | 249 bool request_timeout_for_testing_initialized_; |
250 | 250 |
251 content::NotificationRegistrar registrar_; | 251 content::NotificationRegistrar registrar_; |
252 | 252 |
253 DISALLOW_COPY_AND_ASSIGN(NetworkPortalDetectorImpl); | 253 DISALLOW_COPY_AND_ASSIGN(NetworkPortalDetectorImpl); |
254 }; | 254 }; |
255 | 255 |
256 } // namespace chromeos | 256 } // namespace chromeos |
257 | 257 |
258 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_ | 258 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_ |
OLD | NEW |