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_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ |
6 #define CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 148 |
149 protected: | 149 protected: |
150 // For unit tests. | 150 // For unit tests. |
151 void set_state_for_test(PlanActivationState state) { | 151 void set_state_for_test(PlanActivationState state) { |
152 state_ = state; | 152 state_ = state; |
153 } | 153 } |
154 virtual const NetworkState* GetNetworkState(const std::string& service_path); | 154 virtual const NetworkState* GetNetworkState(const std::string& service_path); |
155 virtual const NetworkState* GetDefaultNetwork(); | 155 virtual const NetworkState* GetDefaultNetwork(); |
156 | 156 |
157 private: | 157 private: |
158 friend struct DefaultSingletonTraits<MobileActivator>; | 158 friend struct base::DefaultSingletonTraits<MobileActivator>; |
159 friend class TestMobileActivator; | 159 friend class TestMobileActivator; |
160 friend class MobileActivatorTest; | 160 friend class MobileActivatorTest; |
161 | 161 |
162 MobileActivator(); | 162 MobileActivator(); |
163 ~MobileActivator() override; | 163 ~MobileActivator() override; |
164 | 164 |
165 // NetworkStateHandlerObserver overrides. | 165 // NetworkStateHandlerObserver overrides. |
166 void DefaultNetworkChanged(const NetworkState* network) override; | 166 void DefaultNetworkChanged(const NetworkState* network) override; |
167 void NetworkPropertiesUpdated(const NetworkState* network) override; | 167 void NetworkPropertiesUpdated(const NetworkState* network) override; |
168 | 168 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 | 320 |
321 base::ObserverList<Observer> observers_; | 321 base::ObserverList<Observer> observers_; |
322 base::WeakPtrFactory<MobileActivator> weak_ptr_factory_; | 322 base::WeakPtrFactory<MobileActivator> weak_ptr_factory_; |
323 | 323 |
324 DISALLOW_COPY_AND_ASSIGN(MobileActivator); | 324 DISALLOW_COPY_AND_ASSIGN(MobileActivator); |
325 }; | 325 }; |
326 | 326 |
327 } // namespace chromeos | 327 } // namespace chromeos |
328 | 328 |
329 #endif // CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ | 329 #endif // CHROME_BROWSER_CHROMEOS_MOBILE_MOBILE_ACTIVATOR_H_ |
OLD | NEW |