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

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

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_H_ 5 #ifndef CONTENT_BROWSER_CERT_STORE_H_
6 #define CONTENT_BROWSER_CERT_STORE_H_ 6 #define CONTENT_BROWSER_CERT_STORE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 27 matching lines...) Expand all
38 int StoreCert(net::X509Certificate* cert, int render_process_host_id); 38 int StoreCert(net::X509Certificate* cert, int render_process_host_id);
39 39
40 // Tries to retrieve the previously stored cert associated with the specified 40 // Tries to retrieve the previously stored cert associated with the specified
41 // |cert_id|. Returns whether the cert could be found, and, if |cert| is 41 // |cert_id|. Returns whether the cert could be found, and, if |cert| is
42 // non-NULL, copies it in. 42 // non-NULL, copies it in.
43 bool RetrieveCert(int cert_id, scoped_refptr<net::X509Certificate>* cert); 43 bool RetrieveCert(int cert_id, scoped_refptr<net::X509Certificate>* cert);
44 44
45 // content::NotificationObserver implementation. 45 // content::NotificationObserver implementation.
46 virtual void Observe(int type, 46 virtual void Observe(int type,
47 const content::NotificationSource& source, 47 const content::NotificationSource& source,
48 const content::NotificationDetails& details); 48 const content::NotificationDetails& details) OVERRIDE;
49 49
50 private: 50 private:
51 friend struct DefaultSingletonTraits<CertStore>; 51 friend struct DefaultSingletonTraits<CertStore>;
52 52
53 CertStore(); 53 CertStore();
54 virtual ~CertStore(); 54 virtual ~CertStore();
55 55
56 // Remove the specified cert from id_to_cert_ and cert_to_id_. 56 // Remove the specified cert from id_to_cert_ and cert_to_id_.
57 // NOTE: the caller (RemoveCertsForRenderProcesHost) must hold cert_lock_. 57 // NOTE: the caller (RemoveCertsForRenderProcesHost) must hold cert_lock_.
58 void RemoveCertInternal(int cert_id); 58 void RemoveCertInternal(int cert_id);
(...skipping 17 matching lines...) Expand all
76 int next_cert_id_; 76 int next_cert_id_;
77 77
78 // This lock protects: process_to_ids_, id_to_processes_, id_to_cert_ and 78 // This lock protects: process_to_ids_, id_to_processes_, id_to_cert_ and
79 // cert_to_id_. 79 // cert_to_id_.
80 base::Lock cert_lock_; 80 base::Lock cert_lock_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(CertStore); 82 DISALLOW_COPY_AND_ASSIGN(CertStore);
83 }; 83 };
84 84
85 #endif // CONTENT_BROWSER_CERT_STORE_H_ 85 #endif // CONTENT_BROWSER_CERT_STORE_H_
OLDNEW
« no previous file with comments | « content/browser/browser_process_sub_thread.h ('k') | content/browser/debugger/devtools_http_protocol_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698