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

Side by Side Diff: chromeos/network/client_cert_resolver.h

Issue 2828713002: Enable client certificate patterns in device ONC policy (Closed)
Patch Set: Clean up. Created 3 years, 8 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
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 CHROMEOS_NETWORK_CLIENT_CERT_RESOLVER_H_ 5 #ifndef CHROMEOS_NETWORK_CLIENT_CERT_RESOLVER_H_
6 #define CHROMEOS_NETWORK_CLIENT_CERT_RESOLVER_H_ 6 #define CHROMEOS_NETWORK_CLIENT_CERT_RESOLVER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void SetClockForTesting(base::Clock* clock); 72 void SetClockForTesting(base::Clock* clock);
73 73
74 // Returns true and sets the Shill properties that have to be configured in 74 // Returns true and sets the Shill properties that have to be configured in
75 // |shill_properties| if the certificate pattern |pattern| could be resolved. 75 // |shill_properties| if the certificate pattern |pattern| could be resolved.
76 // Returns false otherwise and sets empty Shill properties to clear the 76 // Returns false otherwise and sets empty Shill properties to clear the
77 // certificate configuration. 77 // certificate configuration.
78 // Note that it uses the global clock when checking the certificates for 78 // Note that it uses the global clock when checking the certificates for
79 // expiration. 79 // expiration.
80 static bool ResolveCertificatePatternSync( 80 static bool ResolveCertificatePatternSync(
81 const client_cert::ConfigType client_cert_type, 81 const client_cert::ConfigType client_cert_type,
82 const CertificatePattern& pattern, 82 const client_cert::ClientCertConfig& client_cert_config,
83 base::DictionaryValue* shill_properties); 83 base::DictionaryValue* shill_properties);
84 84
85 private: 85 private:
86 // NetworkStateHandlerObserver overrides 86 // NetworkStateHandlerObserver overrides
87 void NetworkListChanged() override; 87 void NetworkListChanged() override;
88 void NetworkConnectionStateChanged(const NetworkState* network) override; 88 void NetworkConnectionStateChanged(const NetworkState* network) override;
89 89
90 // CertLoader::Observer overrides 90 // CertLoader::Observer overrides
91 void OnCertificatesLoaded(const net::CertificateList& cert_list, 91 void OnCertificatesLoaded(const net::CertificateList& cert_list,
92 bool initial_load) override; 92 bool initial_load) override;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 base::Clock* testing_clock_; 141 base::Clock* testing_clock_;
142 142
143 base::WeakPtrFactory<ClientCertResolver> weak_ptr_factory_; 143 base::WeakPtrFactory<ClientCertResolver> weak_ptr_factory_;
144 144
145 DISALLOW_COPY_AND_ASSIGN(ClientCertResolver); 145 DISALLOW_COPY_AND_ASSIGN(ClientCertResolver);
146 }; 146 };
147 147
148 } // namespace chromeos 148 } // namespace chromeos
149 149
150 #endif // CHROMEOS_NETWORK_CLIENT_CERT_RESOLVER_H_ 150 #endif // CHROMEOS_NETWORK_CLIENT_CERT_RESOLVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698