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 CHROME_BROWSER_CHROMEOS_POLICY_USER_NETWORK_CONFIGURATION_UPDATER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_USER_NETWORK_CONFIGURATION_UPDATER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_NETWORK_CONFIGURATION_UPDATER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_USER_NETWORK_CONFIGURATION_UPDATER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 private: | 88 private: |
89 class CrosTrustAnchorProvider; | 89 class CrosTrustAnchorProvider; |
90 | 90 |
91 UserNetworkConfigurationUpdater( | 91 UserNetworkConfigurationUpdater( |
92 Profile* profile, | 92 Profile* profile, |
93 bool allow_trusted_certs_from_policy, | 93 bool allow_trusted_certs_from_policy, |
94 const user_manager::User& user, | 94 const user_manager::User& user, |
95 PolicyService* policy_service, | 95 PolicyService* policy_service, |
96 chromeos::ManagedNetworkConfigurationHandler* network_config_handler); | 96 chromeos::ManagedNetworkConfigurationHandler* network_config_handler); |
97 | 97 |
| 98 // Called by the CertificateImporter when an import finished. |
| 99 void OnCertificatesImported( |
| 100 bool success, |
| 101 const net::CertificateList& onc_trusted_certificates); |
| 102 |
98 // NetworkConfigurationUpdater: | 103 // NetworkConfigurationUpdater: |
99 virtual void ImportCertificates( | 104 virtual void ImportCertificates( |
100 const base::ListValue& certificates_onc) OVERRIDE; | 105 const base::ListValue& certificates_onc) OVERRIDE; |
101 virtual void ApplyNetworkPolicy( | 106 virtual void ApplyNetworkPolicy( |
102 base::ListValue* network_configs_onc, | 107 base::ListValue* network_configs_onc, |
103 base::DictionaryValue* global_network_config) OVERRIDE; | 108 base::DictionaryValue* global_network_config) OVERRIDE; |
104 | 109 |
105 // content::NotificationObserver implementation. Observes the profile to which | 110 // content::NotificationObserver implementation. Observes the profile to which |
106 // |this| belongs to for PROFILE_ADDED notification. | 111 // |this| belongs to for PROFILE_ADDED notification. |
107 virtual void Observe(int type, | 112 virtual void Observe(int type, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 content::NotificationRegistrar registrar_; | 148 content::NotificationRegistrar registrar_; |
144 | 149 |
145 base::WeakPtrFactory<UserNetworkConfigurationUpdater> weak_factory_; | 150 base::WeakPtrFactory<UserNetworkConfigurationUpdater> weak_factory_; |
146 | 151 |
147 DISALLOW_COPY_AND_ASSIGN(UserNetworkConfigurationUpdater); | 152 DISALLOW_COPY_AND_ASSIGN(UserNetworkConfigurationUpdater); |
148 }; | 153 }; |
149 | 154 |
150 } // namespace policy | 155 } // namespace policy |
151 | 156 |
152 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_NETWORK_CONFIGURATION_UPDATER_H_ | 157 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_NETWORK_CONFIGURATION_UPDATER_H_ |
OLD | NEW |