OLD | NEW |
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 CONTENT_BROWSER_CERT_STORE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_CERT_STORE_IMPL_H_ |
6 #define CONTENT_BROWSER_CERT_STORE_IMPL_H_ | 6 #define CONTENT_BROWSER_CERT_STORE_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
11 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
12 #include "content/public/browser/cert_store.h" | 12 #include "content/public/browser/cert_store.h" |
13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
14 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
15 #include "net/base/x509_certificate.h" | 15 #include "net/cert/x509_certificate.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 class CertStoreImpl : public CertStore, | 19 class CertStoreImpl : public CertStore, |
20 public NotificationObserver { | 20 public NotificationObserver { |
21 public: | 21 public: |
22 // Returns the singleton instance of the CertStore. | 22 // Returns the singleton instance of the CertStore. |
23 static CertStoreImpl* GetInstance(); | 23 static CertStoreImpl* GetInstance(); |
24 | 24 |
25 // CertStore implementation: | 25 // CertStore implementation: |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // This lock protects: process_to_ids_, id_to_processes_, id_to_cert_ and | 67 // This lock protects: process_to_ids_, id_to_processes_, id_to_cert_ and |
68 // cert_to_id_. | 68 // cert_to_id_. |
69 base::Lock cert_lock_; | 69 base::Lock cert_lock_; |
70 | 70 |
71 DISALLOW_COPY_AND_ASSIGN(CertStoreImpl); | 71 DISALLOW_COPY_AND_ASSIGN(CertStoreImpl); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace content | 74 } // namespace content |
75 | 75 |
76 #endif // CONTENT_BROWSER_CERT_STORE_IMPL_H_ | 76 #endif // CONTENT_BROWSER_CERT_STORE_IMPL_H_ |
OLD | NEW |