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 <string> | 9 #include <string> |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 void GetPropertiesCallback( | 124 void GetPropertiesCallback( |
125 const network_handler::DictionaryResultCallback& callback, | 125 const network_handler::DictionaryResultCallback& callback, |
126 const std::string& service_path, | 126 const std::string& service_path, |
127 const base::DictionaryValue& shill_properties); | 127 const base::DictionaryValue& shill_properties); |
128 | 128 |
129 const Policies* GetPoliciesForUser(const std::string& userhash) const; | 129 const Policies* GetPoliciesForUser(const std::string& userhash) const; |
130 const Policies* GetPoliciesForProfile(const NetworkProfile& profile) const; | 130 const Policies* GetPoliciesForProfile(const NetworkProfile& profile) const; |
131 | 131 |
132 void OnPolicyAppliedToNetwork(const std::string& service_path); | 132 void OnPolicyAppliedToNetwork(const std::string& service_path); |
133 | 133 |
134 // Helper method to append "IPConfigs" property to |properties| by extracting | 134 // Helper method to append associated Device properties to |properties|. |
135 // them from the associated DeviceState. | 135 void GetDeviceProperties(const std::string& service_path, |
136 void GetIPConfigs(const std::string& service_path, | 136 base::DictionaryValue* properties); |
137 base::DictionaryValue* properties); | |
138 | 137 |
139 // If present, the empty string maps to the device policy. | 138 // If present, the empty string maps to the device policy. |
140 UserToPoliciesMap policies_by_user_; | 139 UserToPoliciesMap policies_by_user_; |
141 | 140 |
142 // Local references to the associated handler instances. | 141 // Local references to the associated handler instances. |
143 NetworkStateHandler* network_state_handler_; | 142 NetworkStateHandler* network_state_handler_; |
144 NetworkProfileHandler* network_profile_handler_; | 143 NetworkProfileHandler* network_profile_handler_; |
145 NetworkConfigurationHandler* network_configuration_handler_; | 144 NetworkConfigurationHandler* network_configuration_handler_; |
146 | 145 |
147 ObserverList<NetworkPolicyObserver> observers_; | 146 ObserverList<NetworkPolicyObserver> observers_; |
148 | 147 |
149 // For Shill client callbacks | 148 // For Shill client callbacks |
150 base::WeakPtrFactory<ManagedNetworkConfigurationHandlerImpl> | 149 base::WeakPtrFactory<ManagedNetworkConfigurationHandlerImpl> |
151 weak_ptr_factory_; | 150 weak_ptr_factory_; |
152 | 151 |
153 DISALLOW_COPY_AND_ASSIGN(ManagedNetworkConfigurationHandlerImpl); | 152 DISALLOW_COPY_AND_ASSIGN(ManagedNetworkConfigurationHandlerImpl); |
154 }; | 153 }; |
155 | 154 |
156 } // namespace chromeos | 155 } // namespace chromeos |
157 | 156 |
158 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_ | 157 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_IMPL_H_ |
OLD | NEW |