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

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

Issue 1562593002: Fix potential crashes in NetworkHandler code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@test
Patch Set: IsShuttingDown -> OnShuttingDown Created 4 years, 11 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « chromeos/network/auto_connect_handler.cc ('k') | chromeos/network/host_resolver_impl_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698