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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 class CrosTrustAnchorProvider; | 67 class CrosTrustAnchorProvider; |
68 | 68 |
69 UserNetworkConfigurationUpdater( | 69 UserNetworkConfigurationUpdater( |
70 bool allow_trusted_certs_from_policy, | 70 bool allow_trusted_certs_from_policy, |
71 const chromeos::User& user, | 71 const chromeos::User& user, |
72 scoped_ptr<chromeos::onc::CertificateImporter> certificate_importer, | 72 scoped_ptr<chromeos::onc::CertificateImporter> certificate_importer, |
73 PolicyService* policy_service, | 73 PolicyService* policy_service, |
74 chromeos::ManagedNetworkConfigurationHandler* network_config_handler); | 74 chromeos::ManagedNetworkConfigurationHandler* network_config_handler); |
75 | 75 |
76 virtual void ImportCertificates( | 76 virtual void ImportCertificates( |
77 const base::ListValue& certificates_onc) OVERRIDE; | 77 const base::ListValue& certificates_onc, |
| 78 net::NSSCertDatabase* target_nssdb) OVERRIDE; |
78 | 79 |
79 virtual void ApplyNetworkPolicy( | 80 virtual void ApplyNetworkPolicy( |
80 base::ListValue* network_configs_onc, | 81 base::ListValue* network_configs_onc, |
81 base::DictionaryValue* global_network_config) OVERRIDE; | 82 base::DictionaryValue* global_network_config) OVERRIDE; |
82 | 83 |
83 void NotifyTrustAnchorsChanged(); | 84 void NotifyTrustAnchorsChanged(); |
84 | 85 |
85 // Whether Web trust is allowed or not. Only relevant for user policies. | 86 // Whether Web trust is allowed or not. Only relevant for user policies. |
86 bool allow_trusted_certificates_from_policy_; | 87 bool allow_trusted_certificates_from_policy_; |
87 | 88 |
88 // The user for whom the user policy will be applied. Is NULL if this Updater | 89 // The user for whom the user policy will be applied. Is NULL if this Updater |
89 // is used for device policy. | 90 // is used for device policy. |
90 const chromeos::User* user_; | 91 const chromeos::User* user_; |
91 | 92 |
92 ObserverList<WebTrustedCertsObserver, true> observer_list_; | 93 ObserverList<WebTrustedCertsObserver, true> observer_list_; |
93 | 94 |
94 // Contains the certificates of the last import that requested web trust. Must | 95 // Contains the certificates of the last import that requested web trust. Must |
95 // be empty if Web trust from policy is not allowed. | 96 // be empty if Web trust from policy is not allowed. |
96 net::CertificateList web_trust_certs_; | 97 net::CertificateList web_trust_certs_; |
97 | 98 |
98 DISALLOW_COPY_AND_ASSIGN(UserNetworkConfigurationUpdater); | 99 DISALLOW_COPY_AND_ASSIGN(UserNetworkConfigurationUpdater); |
99 }; | 100 }; |
100 | 101 |
101 } // namespace policy | 102 } // namespace policy |
102 | 103 |
103 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_NETWORK_CONFIGURATION_UPDATER_H_ | 104 #endif // CHROME_BROWSER_CHROMEOS_POLICY_USER_NETWORK_CONFIGURATION_UPDATER_H_ |
OLD | NEW |