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