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

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

Issue 1152983004: Move ObserverList to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « net/cert/cert_database.h ('k') | remoting/client/plugin/delegating_signal_strategy.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_NSS_CERT_DATABASE_H_ 5 #ifndef NET_CERT_NSS_CERT_DATABASE_H_
6 #define NET_CERT_NSS_CERT_DATABASE_H_ 6 #define NET_CERT_NSS_CERT_DATABASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/strings/string16.h" 15 #include "base/strings/string16.h"
16 #include "crypto/scoped_nss_types.h" 16 #include "crypto/scoped_nss_types.h"
17 #include "net/base/net_errors.h" 17 #include "net/base/net_errors.h"
18 #include "net/base/net_export.h" 18 #include "net/base/net_export.h"
19 #include "net/cert/cert_type.h" 19 #include "net/cert/cert_type.h"
20 #include "net/cert/x509_certificate.h" 20 #include "net/cert/x509_certificate.h"
21 21
22 namespace base { 22 namespace base {
23 template <class ObserverType>
24 class ObserverListThreadSafe;
23 class TaskRunner; 25 class TaskRunner;
24 } 26 }
25 template <class ObserverType> class ObserverListThreadSafe;
26 27
27 namespace net { 28 namespace net {
28 29
29 class CryptoModule; 30 class CryptoModule;
30 typedef std::vector<scoped_refptr<CryptoModule> > CryptoModuleList; 31 typedef std::vector<scoped_refptr<CryptoModule> > CryptoModuleList;
31 32
32 // Provides functions to manipulate the NSS certificate stores. 33 // Provides functions to manipulate the NSS certificate stores.
33 // Forwards notifications about certificate changes to the global CertDatabase 34 // Forwards notifications about certificate changes to the global CertDatabase
34 // singleton. 35 // singleton.
35 class NET_EXPORT NSSCertDatabase { 36 class NET_EXPORT NSSCertDatabase {
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 295
295 crypto::ScopedPK11Slot public_slot_; 296 crypto::ScopedPK11Slot public_slot_;
296 crypto::ScopedPK11Slot private_slot_; 297 crypto::ScopedPK11Slot private_slot_;
297 298
298 // A helper observer that forwards events from this database to CertDatabase. 299 // A helper observer that forwards events from this database to CertDatabase.
299 scoped_ptr<Observer> cert_notification_forwarder_; 300 scoped_ptr<Observer> cert_notification_forwarder_;
300 301
301 // Task runner that should be used in tests if set. 302 // Task runner that should be used in tests if set.
302 scoped_refptr<base::TaskRunner> slow_task_runner_for_test_; 303 scoped_refptr<base::TaskRunner> slow_task_runner_for_test_;
303 304
304 const scoped_refptr<ObserverListThreadSafe<Observer> > observer_list_; 305 const scoped_refptr<base::ObserverListThreadSafe<Observer>> observer_list_;
305 306
306 base::WeakPtrFactory<NSSCertDatabase> weak_factory_; 307 base::WeakPtrFactory<NSSCertDatabase> weak_factory_;
307 308
308 DISALLOW_COPY_AND_ASSIGN(NSSCertDatabase); 309 DISALLOW_COPY_AND_ASSIGN(NSSCertDatabase);
309 }; 310 };
310 311
311 } // namespace net 312 } // namespace net
312 313
313 #endif // NET_CERT_NSS_CERT_DATABASE_H_ 314 #endif // NET_CERT_NSS_CERT_DATABASE_H_
OLDNEW
« no previous file with comments | « net/cert/cert_database.h ('k') | remoting/client/plugin/delegating_signal_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698