| 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 CHROME_BROWSER_CHROMEOS_POLICY_NETWORK_CONFIGURATION_UPDATER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_NETWORK_CONFIGURATION_UPDATER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_NETWORK_CONFIGURATION_UPDATER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_NETWORK_CONFIGURATION_UPDATER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // Shill. Certificates are imported with the chromeos::onc::CertificateImporter. | 33 // Shill. Certificates are imported with the chromeos::onc::CertificateImporter. |
| 34 // For user policies the subclass UserNetworkConfigurationUpdater must be used. | 34 // For user policies the subclass UserNetworkConfigurationUpdater must be used. |
| 35 // Does not handle proxy settings. | 35 // Does not handle proxy settings. |
| 36 class NetworkConfigurationUpdater : public PolicyService::Observer { | 36 class NetworkConfigurationUpdater : public PolicyService::Observer { |
| 37 public: | 37 public: |
| 38 virtual ~NetworkConfigurationUpdater(); | 38 virtual ~NetworkConfigurationUpdater(); |
| 39 | 39 |
| 40 // PolicyService::Observer overrides | 40 // PolicyService::Observer overrides |
| 41 virtual void OnPolicyUpdated(const PolicyNamespace& ns, | 41 virtual void OnPolicyUpdated(const PolicyNamespace& ns, |
| 42 const PolicyMap& previous, | 42 const PolicyMap& previous, |
| 43 const PolicyMap& current) OVERRIDE; | 43 const PolicyMap& current) override; |
| 44 virtual void OnPolicyServiceInitialized(PolicyDomain domain) OVERRIDE; | 44 virtual void OnPolicyServiceInitialized(PolicyDomain domain) override; |
| 45 | 45 |
| 46 protected: | 46 protected: |
| 47 NetworkConfigurationUpdater( | 47 NetworkConfigurationUpdater( |
| 48 onc::ONCSource onc_source, | 48 onc::ONCSource onc_source, |
| 49 std::string policy_key, | 49 std::string policy_key, |
| 50 PolicyService* policy_service, | 50 PolicyService* policy_service, |
| 51 chromeos::ManagedNetworkConfigurationHandler* network_config_handler); | 51 chromeos::ManagedNetworkConfigurationHandler* network_config_handler); |
| 52 | 52 |
| 53 virtual void Init(); | 53 virtual void Init(); |
| 54 | 54 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 83 | 83 |
| 84 // Used to retrieve the policies. | 84 // Used to retrieve the policies. |
| 85 PolicyService* policy_service_; | 85 PolicyService* policy_service_; |
| 86 | 86 |
| 87 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationUpdater); | 87 DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationUpdater); |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace policy | 90 } // namespace policy |
| 91 | 91 |
| 92 #endif // CHROME_BROWSER_CHROMEOS_POLICY_NETWORK_CONFIGURATION_UPDATER_H_ | 92 #endif // CHROME_BROWSER_CHROMEOS_POLICY_NETWORK_CONFIGURATION_UPDATER_H_ |
| OLD | NEW |