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

Side by Side Diff: content/browser/cert_store_impl.h

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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 | Annotate | Revision Log
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 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
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_
OLDNEW
« no previous file with comments | « chromeos/network/onc/onc_certificate_importer_unittest.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698