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

Side by Side Diff: net/cert/sth_distributor.h

Issue 2015503003: Certificate Transparency: Ensure no observers in STHDistributor d'tor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « no previous file | net/cert/sth_distributor_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 NET_CERT_STH_DISTRIBUTOR_H_ 5 #ifndef NET_CERT_STH_DISTRIBUTOR_H_
6 #define NET_CERT_STH_DISTRIBUTOR_H_ 6 #define NET_CERT_STH_DISTRIBUTOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 28 matching lines...) Expand all
39 39
40 // Unregisters |observer|, which must have been previously 40 // Unregisters |observer|, which must have been previously
41 // registered via RegisterObserver() 41 // registered via RegisterObserver()
42 void UnregisterObserver(STHObserver* observer) override; 42 void UnregisterObserver(STHObserver* observer) override;
43 43
44 private: 44 private:
45 // STHs from logs, one for each log. 45 // STHs from logs, one for each log.
46 std::vector<SignedTreeHead> observed_sths_; 46 std::vector<SignedTreeHead> observed_sths_;
47 47
48 // The observers for new STH notifications. 48 // The observers for new STH notifications.
49 base::ObserverList<STHObserver> observer_list_; 49 base::ObserverList<STHObserver, true> observer_list_;
50 }; 50 };
51 51
52 } // namespace ct 52 } // namespace ct
53 53
54 } // namespace net 54 } // namespace net
55 55
56 #endif // NET_CERT_STH_DISTRIBUTOR_H_ 56 #endif // NET_CERT_STH_DISTRIBUTOR_H_
OLDNEW
« no previous file with comments | « no previous file | net/cert/sth_distributor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698