| 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_POLICY_APPLICATOR_H_ | 5 #ifndef CHROMEOS_NETWORK_POLICY_APPLICATOR_H_ |
| 6 #define CHROMEOS_NETWORK_POLICY_APPLICATOR_H_ | 6 #define CHROMEOS_NETWORK_POLICY_APPLICATOR_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/macros.h" |
| 12 #include "base/memory/scoped_vector.h" | 13 #include "base/memory/scoped_vector.h" |
| 13 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 14 #include "base/values.h" | 15 #include "base/values.h" |
| 15 #include "chromeos/network/network_profile.h" | 16 #include "chromeos/network/network_profile.h" |
| 16 | 17 |
| 17 namespace chromeos { | 18 namespace chromeos { |
| 18 | 19 |
| 19 // This class compares (entry point is Run()) |modified_policies| with the | 20 // This class compares (entry point is Run()) |modified_policies| with the |
| 20 // existing entries in the provided Shill profile |profile|. It fetches all | 21 // existing entries in the provided Shill profile |profile|. It fetches all |
| 21 // entries in parallel (GetProfilePropertiesCallback), compares each entry with | 22 // entries in parallel (GetProfilePropertiesCallback), compares each entry with |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 base::DictionaryValue global_network_config_; | 108 base::DictionaryValue global_network_config_; |
| 108 ScopedVector<base::DictionaryValue> new_shill_configurations_; | 109 ScopedVector<base::DictionaryValue> new_shill_configurations_; |
| 109 base::WeakPtrFactory<PolicyApplicator> weak_ptr_factory_; | 110 base::WeakPtrFactory<PolicyApplicator> weak_ptr_factory_; |
| 110 | 111 |
| 111 DISALLOW_COPY_AND_ASSIGN(PolicyApplicator); | 112 DISALLOW_COPY_AND_ASSIGN(PolicyApplicator); |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } // namespace chromeos | 115 } // namespace chromeos |
| 115 | 116 |
| 116 #endif // CHROMEOS_NETWORK_POLICY_APPLICATOR_H_ | 117 #endif // CHROMEOS_NETWORK_POLICY_APPLICATOR_H_ |
| OLD | NEW |