OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMEOS_NETWORK_PORTAL_DETECTOR_NETWORK_PORTAL_DETECTOR_H_ | 5 #ifndef CHROMEOS_NETWORK_PORTAL_DETECTOR_NETWORK_PORTAL_DETECTOR_H_ |
6 #define CHROMEOS_NETWORK_PORTAL_DETECTOR_NETWORK_PORTAL_DETECTOR_H_ | 6 #define CHROMEOS_NETWORK_PORTAL_DETECTOR_NETWORK_PORTAL_DETECTOR_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chromeos/chromeos_export.h" | 9 #include "chromeos/chromeos_export.h" |
10 #include "chromeos/network/portal_detector/network_portal_detector_strategy.h" | 10 #include "chromeos/network/portal_detector/network_portal_detector_strategy.h" |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 }; | 143 }; |
144 | 144 |
145 class CHROMEOS_EXPORT NetworkPortalDetectorStubImpl | 145 class CHROMEOS_EXPORT NetworkPortalDetectorStubImpl |
146 : public NetworkPortalDetector { | 146 : public NetworkPortalDetector { |
147 public: | 147 public: |
148 NetworkPortalDetectorStubImpl(); | 148 NetworkPortalDetectorStubImpl(); |
149 virtual ~NetworkPortalDetectorStubImpl(); | 149 virtual ~NetworkPortalDetectorStubImpl(); |
150 | 150 |
151 protected: | 151 protected: |
152 // NetworkPortalDetector | 152 // NetworkPortalDetector |
153 virtual void AddObserver(Observer* observer) OVERRIDE; | 153 virtual void AddObserver(Observer* observer) override; |
154 virtual void AddAndFireObserver(Observer* observer) OVERRIDE; | 154 virtual void AddAndFireObserver(Observer* observer) override; |
155 virtual void RemoveObserver(Observer* observer) OVERRIDE; | 155 virtual void RemoveObserver(Observer* observer) override; |
156 virtual CaptivePortalState GetCaptivePortalState( | 156 virtual CaptivePortalState GetCaptivePortalState( |
157 const std::string& service_path) OVERRIDE; | 157 const std::string& service_path) override; |
158 virtual bool IsEnabled() OVERRIDE; | 158 virtual bool IsEnabled() override; |
159 virtual void Enable(bool start_detection) OVERRIDE; | 159 virtual void Enable(bool start_detection) override; |
160 virtual bool StartDetectionIfIdle() OVERRIDE; | 160 virtual bool StartDetectionIfIdle() override; |
161 virtual void SetStrategy(PortalDetectorStrategy::StrategyId id) OVERRIDE; | 161 virtual void SetStrategy(PortalDetectorStrategy::StrategyId id) override; |
162 | 162 |
163 private: | 163 private: |
164 DISALLOW_COPY_AND_ASSIGN(NetworkPortalDetectorStubImpl); | 164 DISALLOW_COPY_AND_ASSIGN(NetworkPortalDetectorStubImpl); |
165 }; | 165 }; |
166 | 166 |
167 } // namespace chromeos | 167 } // namespace chromeos |
168 | 168 |
169 #endif // CHROMEOS_NETWORK_PORTAL_DETECTOR_NETWORK_PORTAL_DETECTOR_H_ | 169 #endif // CHROMEOS_NETWORK_PORTAL_DETECTOR_NETWORK_PORTAL_DETECTOR_H_ |
OLD | NEW |