Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(715)

Side by Side Diff: chrome/browser/chromeos/policy/user_network_configuration_updater.h

Issue 148183013: Use per-user nssdb in onc certificate importer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698