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 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 void ConfigureCertificates(std::vector<NetworkAndMatchingCert>* matches); | 115 void ConfigureCertificates(std::vector<NetworkAndMatchingCert>* matches); |
116 | 116 |
117 // Trigger a ResolveRequestCompleted event on all observers. | 117 // Trigger a ResolveRequestCompleted event on all observers. |
118 void NotifyResolveRequestCompleted(); | 118 void NotifyResolveRequestCompleted(); |
119 | 119 |
120 // Returns Time::Now() unless a mock clock has been installed with | 120 // Returns Time::Now() unless a mock clock has been installed with |
121 // SetClockForTesting, in which case the time according to that clock is used | 121 // SetClockForTesting, in which case the time according to that clock is used |
122 // instead. | 122 // instead. |
123 base::Time Now() const; | 123 base::Time Now() const; |
124 | 124 |
125 base::ObserverList<Observer> observers_; | 125 base::ObserverList<Observer, true> observers_; |
126 | 126 |
127 // The set of networks that were checked/resolved in previous passes. These | 127 // The set of networks that were checked/resolved in previous passes. These |
128 // networks are skipped in the NetworkListChanged notification. | 128 // networks are skipped in the NetworkListChanged notification. |
129 std::set<std::string> resolved_networks_; | 129 std::set<std::string> resolved_networks_; |
130 | 130 |
131 // The list of network paths that still have to be resolved. | 131 // The list of network paths that still have to be resolved. |
132 std::set<std::string> queued_networks_to_resolve_; | 132 std::set<std::string> queued_networks_to_resolve_; |
133 | 133 |
134 // True if currently a resolve task is running. | 134 // True if currently a resolve task is running. |
135 bool resolve_task_running_; | 135 bool resolve_task_running_; |
(...skipping 15 matching lines...) Expand all Loading... |
151 base::Clock* testing_clock_; | 151 base::Clock* testing_clock_; |
152 | 152 |
153 base::WeakPtrFactory<ClientCertResolver> weak_ptr_factory_; | 153 base::WeakPtrFactory<ClientCertResolver> weak_ptr_factory_; |
154 | 154 |
155 DISALLOW_COPY_AND_ASSIGN(ClientCertResolver); | 155 DISALLOW_COPY_AND_ASSIGN(ClientCertResolver); |
156 }; | 156 }; |
157 | 157 |
158 } // namespace chromeos | 158 } // namespace chromeos |
159 | 159 |
160 #endif // CHROMEOS_NETWORK_CLIENT_CERT_RESOLVER_H_ | 160 #endif // CHROMEOS_NETWORK_CLIENT_CERT_RESOLVER_H_ |
OLD | NEW |