Chromium Code Reviews| 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 CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
| 6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 220 // connected using EAP, returns NULL. | 220 // connected using EAP, returns NULL. |
| 221 const NetworkState* GetEAPForEthernet(const std::string& service_path); | 221 const NetworkState* GetEAPForEthernet(const std::string& service_path); |
| 222 | 222 |
| 223 const std::string& default_network_path() const { | 223 const std::string& default_network_path() const { |
| 224 return default_network_path_; | 224 return default_network_path_; |
| 225 } | 225 } |
| 226 | 226 |
| 227 // Constructs and initializes an instance for testing. | 227 // Constructs and initializes an instance for testing. |
| 228 static NetworkStateHandler* InitializeForTest(); | 228 static NetworkStateHandler* InitializeForTest(); |
| 229 | 229 |
| 230 // Used to simulate change in network properties | |
|
Daniel Erat
2015/03/23 03:49:21
nit: add trailing period
Greg Levin
2015/03/24 20:35:32
Done.
| |
| 231 void DebugNotifyNetworkPropertiesUpdated(); | |
|
Daniel Erat
2015/03/23 03:49:21
adding a debug method here doesn't seem right.
Greg Levin
2015/03/24 20:35:32
Could you elaborate on what seems wrong about this
Daniel Erat
2015/03/24 20:45:45
thanks for the explanation. there are stub impleme
| |
| 232 | |
| 230 // Default set of comma separated interfaces on which to enable | 233 // Default set of comma separated interfaces on which to enable |
| 231 // portal checking. | 234 // portal checking. |
| 232 static const char kDefaultCheckPortalList[]; | 235 static const char kDefaultCheckPortalList[]; |
| 233 | 236 |
| 234 protected: | 237 protected: |
| 235 friend class NetworkHandler; | 238 friend class NetworkHandler; |
| 236 NetworkStateHandler(); | 239 NetworkStateHandler(); |
| 237 | 240 |
| 238 // ShillPropertyHandler::Listener overrides. | 241 // ShillPropertyHandler::Listener overrides. |
| 239 | 242 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 379 // Map of network specifiers to guids. Contains an entry for each | 382 // Map of network specifiers to guids. Contains an entry for each |
| 380 // NetworkState that is not saved in a profile. | 383 // NetworkState that is not saved in a profile. |
| 381 SpecifierGuidMap specifier_guid_map_; | 384 SpecifierGuidMap specifier_guid_map_; |
| 382 | 385 |
| 383 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 386 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); |
| 384 }; | 387 }; |
| 385 | 388 |
| 386 } // namespace chromeos | 389 } // namespace chromeos |
| 387 | 390 |
| 388 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 391 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
| OLD | NEW |