| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 // Returns the NetworkState of the EthernetEAP service, which contains the | 217 // Returns the NetworkState of the EthernetEAP service, which contains the |
| 218 // EAP parameters used by the ethernet with |service_path|. If |service_path| | 218 // EAP parameters used by the ethernet with |service_path|. If |service_path| |
| 219 // doesn't refer to an ethernet service or if the ethernet service is not | 219 // doesn't refer to an ethernet service or if the ethernet service is not |
| 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 // Sets the |last_error_| property of the matching NetworkState for tests. |
| 228 void SetLastErrorForTest(const std::string& service_path, |
| 229 const std::string& error); |
| 230 |
| 227 // Constructs and initializes an instance for testing. | 231 // Constructs and initializes an instance for testing. |
| 228 static NetworkStateHandler* InitializeForTest(); | 232 static NetworkStateHandler* InitializeForTest(); |
| 229 | 233 |
| 230 // Default set of comma separated interfaces on which to enable | 234 // Default set of comma separated interfaces on which to enable |
| 231 // portal checking. | 235 // portal checking. |
| 232 static const char kDefaultCheckPortalList[]; | 236 static const char kDefaultCheckPortalList[]; |
| 233 | 237 |
| 234 protected: | 238 protected: |
| 235 friend class NetworkHandler; | 239 friend class NetworkHandler; |
| 236 NetworkStateHandler(); | 240 NetworkStateHandler(); |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 // Map of network specifiers to guids. Contains an entry for each | 383 // Map of network specifiers to guids. Contains an entry for each |
| 380 // NetworkState that is not saved in a profile. | 384 // NetworkState that is not saved in a profile. |
| 381 SpecifierGuidMap specifier_guid_map_; | 385 SpecifierGuidMap specifier_guid_map_; |
| 382 | 386 |
| 383 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 387 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); |
| 384 }; | 388 }; |
| 385 | 389 |
| 386 } // namespace chromeos | 390 } // namespace chromeos |
| 387 | 391 |
| 388 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 392 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
| OLD | NEW |