| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } | 96 } |
| 97 | 97 |
| 98 // Asynchronously sets the technology enabled property for |type|. Only | 98 // Asynchronously sets the technology enabled property for |type|. Only |
| 99 // NetworkTypePattern::Primitive, ::Mobile and ::Ethernet are supported. | 99 // NetworkTypePattern::Primitive, ::Mobile and ::Ethernet are supported. |
| 100 // Note: Modifies Manager state. Calls |error_callback| on failure. | 100 // Note: Modifies Manager state. Calls |error_callback| on failure. |
| 101 void SetTechnologyEnabled( | 101 void SetTechnologyEnabled( |
| 102 const NetworkTypePattern& type, | 102 const NetworkTypePattern& type, |
| 103 bool enabled, | 103 bool enabled, |
| 104 const network_handler::ErrorCallback& error_callback); | 104 const network_handler::ErrorCallback& error_callback); |
| 105 | 105 |
| 106 // Asynchronously sets the list of prohibited technologies. The accepted |
| 107 // values are the shill network technology identifiers. See also |
| 108 // chromeos::onc::Validator::ValidateGlobalNetworkConfiguration(). |
| 109 void SetProhibitedTechnologies( |
| 110 const std::vector<std::string>& prohibited_technologies, |
| 111 const network_handler::ErrorCallback& error_callback); |
| 112 |
| 106 // Finds and returns a device state by |device_path| or NULL if not found. | 113 // Finds and returns a device state by |device_path| or NULL if not found. |
| 107 const DeviceState* GetDeviceState(const std::string& device_path) const; | 114 const DeviceState* GetDeviceState(const std::string& device_path) const; |
| 108 | 115 |
| 109 // Finds and returns a device state by |type|. Returns NULL if not found. | 116 // Finds and returns a device state by |type|. Returns NULL if not found. |
| 110 const DeviceState* GetDeviceStateByType(const NetworkTypePattern& type) const; | 117 const DeviceState* GetDeviceStateByType(const NetworkTypePattern& type) const; |
| 111 | 118 |
| 112 // Returns true if any device of |type| is scanning. | 119 // Returns true if any device of |type| is scanning. |
| 113 bool GetScanningByType(const NetworkTypePattern& type) const; | 120 bool GetScanningByType(const NetworkTypePattern& type) const; |
| 114 | 121 |
| 115 // Finds and returns a network state by |service_path| or NULL if not found. | 122 // Finds and returns a network state by |service_path| or NULL if not found. |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 // Map of network specifiers to guids. Contains an entry for each | 390 // Map of network specifiers to guids. Contains an entry for each |
| 384 // NetworkState that is not saved in a profile. | 391 // NetworkState that is not saved in a profile. |
| 385 SpecifierGuidMap specifier_guid_map_; | 392 SpecifierGuidMap specifier_guid_map_; |
| 386 | 393 |
| 387 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 394 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); |
| 388 }; | 395 }; |
| 389 | 396 |
| 390 } // namespace chromeos | 397 } // namespace chromeos |
| 391 | 398 |
| 392 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 399 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
| OLD | NEW |