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

Side by Side Diff: chrome/browser/cert_store.h

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/cancelable_request.h ('k') | chrome/browser/cert_store.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_CERT_STORE_H_ 5 #ifndef CHROME_BROWSER_CERT_STORE_H_
6 #define CHROME_BROWSER_CERT_STORE_H_ 6 #define CHROME_BROWSER_CERT_STORE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
11 #include "base/lock.h"
12 #include "base/singleton.h" 11 #include "base/singleton.h"
12 #include "base/synchronization/lock.h"
13 #include "chrome/common/notification_observer.h" 13 #include "chrome/common/notification_observer.h"
14 #include "chrome/common/notification_registrar.h" 14 #include "chrome/common/notification_registrar.h"
15 #include "net/base/x509_certificate.h" 15 #include "net/base/x509_certificate.h"
16 16
17 // The purpose of the cert store is to provide an easy way to store/retrieve 17 // The purpose of the cert store is to provide an easy way to store/retrieve
18 // X509Certificate objects. When stored, an X509Certificate object is 18 // X509Certificate objects. When stored, an X509Certificate object is
19 // associated with a RenderProcessHost. If all the RenderProcessHosts 19 // associated with a RenderProcessHost. If all the RenderProcessHosts
20 // associated with the cert have exited, the cert is removed from the store. 20 // associated with the cert have exited, the cert is removed from the store.
21 // This class is used by the SSLManager to keep track of the certs associated 21 // This class is used by the SSLManager to keep track of the certs associated
22 // to loaded resources. 22 // to loaded resources.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 IDMap process_id_to_cert_id_; 69 IDMap process_id_to_cert_id_;
70 IDMap cert_id_to_process_id_; 70 IDMap cert_id_to_process_id_;
71 71
72 CertMap id_to_cert_; 72 CertMap id_to_cert_;
73 ReverseCertMap cert_to_id_; 73 ReverseCertMap cert_to_id_;
74 74
75 int next_cert_id_; 75 int next_cert_id_;
76 76
77 // This lock protects: process_to_ids_, id_to_processes_, id_to_cert_ and 77 // This lock protects: process_to_ids_, id_to_processes_, id_to_cert_ and
78 // cert_to_id_. 78 // cert_to_id_.
79 Lock cert_lock_; 79 base::Lock cert_lock_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(CertStore); 81 DISALLOW_COPY_AND_ASSIGN(CertStore);
82 }; 82 };
83 83
84 #endif // CHROME_BROWSER_CERT_STORE_H_ 84 #endif // CHROME_BROWSER_CERT_STORE_H_
OLDNEW
« no previous file with comments | « chrome/browser/cancelable_request.h ('k') | chrome/browser/cert_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698