| 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 | 
|  | 113   // Called when user policy is applied | 
|  | 114   void UserPolicyApplied(); | 
|  | 115 | 
| 106   // Finds and returns a device state by |device_path| or NULL if not found. | 116   // Finds and returns a device state by |device_path| or NULL if not found. | 
| 107   const DeviceState* GetDeviceState(const std::string& device_path) const; | 117   const DeviceState* GetDeviceState(const std::string& device_path) const; | 
| 108 | 118 | 
| 109   // Finds and returns a device state by |type|. Returns NULL if not found. | 119   // Finds and returns a device state by |type|. Returns NULL if not found. | 
| 110   const DeviceState* GetDeviceStateByType(const NetworkTypePattern& type) const; | 120   const DeviceState* GetDeviceStateByType(const NetworkTypePattern& type) const; | 
| 111 | 121 | 
| 112   // Returns true if any device of |type| is scanning. | 122   // Returns true if any device of |type| is scanning. | 
| 113   bool GetScanningByType(const NetworkTypePattern& type) const; | 123   bool GetScanningByType(const NetworkTypePattern& type) const; | 
| 114 | 124 | 
| 115   // Finds and returns a network state by |service_path| or NULL if not found. | 125   // 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 | 393   // Map of network specifiers to guids. Contains an entry for each | 
| 384   // NetworkState that is not saved in a profile. | 394   // NetworkState that is not saved in a profile. | 
| 385   SpecifierGuidMap specifier_guid_map_; | 395   SpecifierGuidMap specifier_guid_map_; | 
| 386 | 396 | 
| 387   DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 397   DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 
| 388 }; | 398 }; | 
| 389 | 399 | 
| 390 }  // namespace chromeos | 400 }  // namespace chromeos | 
| 391 | 401 | 
| 392 #endif  // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 402 #endif  // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 
| OLD | NEW | 
|---|