| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 // NetworkPortalDetector implementation: | 70 // NetworkPortalDetector implementation: |
| 71 void AddObserver(Observer* observer) override; | 71 void AddObserver(Observer* observer) override; |
| 72 void AddAndFireObserver(Observer* observer) override; | 72 void AddAndFireObserver(Observer* observer) override; |
| 73 void RemoveObserver(Observer* observer) override; | 73 void RemoveObserver(Observer* observer) override; |
| 74 CaptivePortalState GetCaptivePortalState(const std::string& guid) override; | 74 CaptivePortalState GetCaptivePortalState(const std::string& guid) override; |
| 75 bool IsEnabled() override; | 75 bool IsEnabled() override; |
| 76 void Enable(bool start_detection) override; | 76 void Enable(bool start_detection) override; |
| 77 bool StartDetectionIfIdle() override; | 77 bool StartDetectionIfIdle() override; |
| 78 void SetStrategy(PortalDetectorStrategy::StrategyId id) override; | 78 void SetStrategy(PortalDetectorStrategy::StrategyId id) override; |
| 79 void OnLockScreenRequest() override; |
| 79 | 80 |
| 80 // NetworkStateHandlerObserver implementation: | 81 // NetworkStateHandlerObserver implementation: |
| 81 void DefaultNetworkChanged(const NetworkState* network) override; | 82 void DefaultNetworkChanged(const NetworkState* network) override; |
| 82 | 83 |
| 83 // PortalDetectorStrategy::Delegate implementation: | 84 // PortalDetectorStrategy::Delegate implementation: |
| 84 int NoResponseResultCount() override; | 85 int NoResponseResultCount() override; |
| 85 base::TimeTicks AttemptStartTime() override; | 86 base::TimeTicks AttemptStartTime() override; |
| 86 base::TimeTicks GetCurrentTimeTicks() override; | 87 base::TimeTicks GetCurrentTimeTicks() override; |
| 87 | 88 |
| 88 private: | 89 private: |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 DetectionAttemptCompletedReport attempt_completed_report_; | 263 DetectionAttemptCompletedReport attempt_completed_report_; |
| 263 | 264 |
| 264 base::WeakPtrFactory<NetworkPortalDetectorImpl> weak_factory_; | 265 base::WeakPtrFactory<NetworkPortalDetectorImpl> weak_factory_; |
| 265 | 266 |
| 266 DISALLOW_COPY_AND_ASSIGN(NetworkPortalDetectorImpl); | 267 DISALLOW_COPY_AND_ASSIGN(NetworkPortalDetectorImpl); |
| 267 }; | 268 }; |
| 268 | 269 |
| 269 } // namespace chromeos | 270 } // namespace chromeos |
| 270 | 271 |
| 271 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_ | 272 #endif // CHROME_BROWSER_CHROMEOS_NET_NETWORK_PORTAL_DETECTOR_IMPL_H_ |
| OLD | NEW |