| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_H_ | 5 #ifndef CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ |
| 6 #define CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 | 149 |
| 150 virtual const GuidToPolicyMap* GetNetworkConfigsFromPolicy( | 150 virtual const GuidToPolicyMap* GetNetworkConfigsFromPolicy( |
| 151 const std::string& userhash) const = 0; | 151 const std::string& userhash) const = 0; |
| 152 | 152 |
| 153 // Returns the global configuration of the policy of user |userhash| or device | 153 // Returns the global configuration of the policy of user |userhash| or device |
| 154 // policy if |userhash| is empty. | 154 // policy if |userhash| is empty. |
| 155 virtual const base::DictionaryValue* GetGlobalConfigFromPolicy( | 155 virtual const base::DictionaryValue* GetGlobalConfigFromPolicy( |
| 156 const std::string& userhash) const = 0; | 156 const std::string& userhash) const = 0; |
| 157 | 157 |
| 158 // Returns the policy with |guid| for profile |profile_path|. If such | 158 // Returns the policy with |guid| for profile |profile_path|. If such |
| 159 // doesn't exist, returns NULL. | 159 // doesn't exist, returns NULL. Sets |onc_source| accordingly if it is not |
| 160 // nullptr. |
| 160 virtual const base::DictionaryValue* FindPolicyByGuidAndProfile( | 161 virtual const base::DictionaryValue* FindPolicyByGuidAndProfile( |
| 161 const std::string& guid, | 162 const std::string& guid, |
| 162 const std::string& profile_path) const = 0; | 163 const std::string& profile_path, |
| 164 ::onc::ONCSource* onc_source) const = 0; |
| 163 | 165 |
| 164 private: | 166 private: |
| 165 DISALLOW_ASSIGN(ManagedNetworkConfigurationHandler); | 167 DISALLOW_ASSIGN(ManagedNetworkConfigurationHandler); |
| 166 }; | 168 }; |
| 167 | 169 |
| 168 } // namespace chromeos | 170 } // namespace chromeos |
| 169 | 171 |
| 170 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ | 172 #endif // CHROMEOS_NETWORK_MANAGED_NETWORK_CONFIGURATION_HANDLER_H_ |
| OLD | NEW |