| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_ | 5 #ifndef CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_ |
| 6 #define CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_ | 6 #define CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 void GetManagedProperties( | 49 void GetManagedProperties( |
| 50 const std::string& userhash, | 50 const std::string& userhash, |
| 51 const std::string& service_path, | 51 const std::string& service_path, |
| 52 const network_handler::DictionaryResultCallback& callback, | 52 const network_handler::DictionaryResultCallback& callback, |
| 53 const network_handler::ErrorCallback& error_callback) override; | 53 const network_handler::ErrorCallback& error_callback) override; |
| 54 | 54 |
| 55 void SetProperties( | 55 void SetProperties( |
| 56 const std::string& service_path, | 56 const std::string& service_path, |
| 57 const base::DictionaryValue& user_settings, | 57 const base::DictionaryValue& user_settings, |
| 58 const base::Closure& callback, | 58 const base::Closure& callback, |
| 59 const network_handler::ErrorCallback& error_callback) const override; | 59 const network_handler::ErrorCallback& error_callback) override; |
| 60 | 60 |
| 61 void CreateConfiguration( | 61 void CreateConfiguration( |
| 62 const std::string& userhash, | 62 const std::string& userhash, |
| 63 const base::DictionaryValue& properties, | 63 const base::DictionaryValue& properties, |
| 64 const network_handler::StringResultCallback& callback, | 64 const network_handler::StringResultCallback& callback, |
| 65 const network_handler::ErrorCallback& error_callback) const override; | 65 const network_handler::ErrorCallback& error_callback) const override; |
| 66 | 66 |
| 67 void RemoveConfiguration( | 67 void RemoveConfiguration( |
| 68 const std::string& service_path, | 68 const std::string& service_path, |
| 69 const base::Closure& callback, | 69 const base::Closure& callback, |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 GetDevicePropertiesCallback send_callback, | 172 GetDevicePropertiesCallback send_callback, |
| 173 const std::string& device_path, | 173 const std::string& device_path, |
| 174 const base::DictionaryValue& device_properties); | 174 const base::DictionaryValue& device_properties); |
| 175 void GetDevicePropertiesFailure( | 175 void GetDevicePropertiesFailure( |
| 176 const std::string& service_path, | 176 const std::string& service_path, |
| 177 scoped_ptr<base::DictionaryValue> network_properties, | 177 scoped_ptr<base::DictionaryValue> network_properties, |
| 178 GetDevicePropertiesCallback send_callback, | 178 GetDevicePropertiesCallback send_callback, |
| 179 const std::string& error_name, | 179 const std::string& error_name, |
| 180 scoped_ptr<base::DictionaryValue> error_data); | 180 scoped_ptr<base::DictionaryValue> error_data); |
| 181 | 181 |
| 182 void SetShillDeviceProperties( |
| 183 const std::string& device_path, |
| 184 scoped_ptr<base::DictionaryValue> shill_device_dictionary, |
| 185 const base::Closure& callback, |
| 186 const network_handler::ErrorCallback& error_callback); |
| 187 void SetShillServiceProperties( |
| 188 const std::string& service_path, |
| 189 scoped_ptr<base::DictionaryValue> shill_service_dictionary, |
| 190 const base::Closure& callback, |
| 191 const network_handler::ErrorCallback& error_callback); |
| 192 |
| 182 // Applies policies for |userhash|. |modified_policies| must be not null and | 193 // Applies policies for |userhash|. |modified_policies| must be not null and |
| 183 // contain the GUIDs of the network configurations that changed since the last | 194 // contain the GUIDs of the network configurations that changed since the last |
| 184 // policy application. Returns true if policy application was started and | 195 // policy application. Returns true if policy application was started and |
| 185 // false if it was queued or delayed. | 196 // false if it was queued or delayed. |
| 186 bool ApplyOrQueuePolicies(const std::string& userhash, | 197 bool ApplyOrQueuePolicies(const std::string& userhash, |
| 187 std::set<std::string>* modified_policies); | 198 std::set<std::string>* modified_policies); |
| 188 | 199 |
| 189 // If present, the empty string maps to the device policy. | 200 // If present, the empty string maps to the device policy. |
| 190 UserToPoliciesMap policies_by_user_; | 201 UserToPoliciesMap policies_by_user_; |
| 191 | 202 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 210 // For Shill client callbacks | 221 // For Shill client callbacks |
| 211 base::WeakPtrFactory<ManagedNetworkConfigurationHandlerImpl> | 222 base::WeakPtrFactory<ManagedNetworkConfigurationHandlerImpl> |
| 212 weak_ptr_factory_; | 223 weak_ptr_factory_; |
| 213 | 224 |
| 214 DISALLOW_COPY_AND_ASSIGN(ManagedNetworkConfigurationHandlerImpl); | 225 DISALLOW_COPY_AND_ASSIGN(ManagedNetworkConfigurationHandlerImpl); |
| 215 }; | 226 }; |
| 216 | 227 |
| 217 } // namespace chromeos | 228 } // namespace chromeos |
| 218 | 229 |
| 219 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_ | 230 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_ |
| OLD | NEW |