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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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 | « content/browser/cert_store_impl.h ('k') | content/browser/child_process_security_policy_impl.h » ('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 #include "content/browser/cert_store_impl.h" 5 #include "content/browser/cert_store_impl.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 // static 9 // static
10 CertStore* CertStore::GetInstance() { 10 CertStore* CertStore::GetInstance() {
11 return CertStoreImpl::GetInstance(); 11 return CertStoreImpl::GetInstance();
12 } 12 }
13 13
14 // static 14 // static
15 CertStoreImpl* CertStoreImpl::GetInstance() { 15 CertStoreImpl* CertStoreImpl::GetInstance() {
16 return Singleton<CertStoreImpl>::get(); 16 return base::Singleton<CertStoreImpl>::get();
17 } 17 }
18 18
19 CertStoreImpl::CertStoreImpl() {} 19 CertStoreImpl::CertStoreImpl() {}
20 20
21 CertStoreImpl::~CertStoreImpl() {} 21 CertStoreImpl::~CertStoreImpl() {}
22 22
23 int CertStoreImpl::StoreCert(net::X509Certificate* cert, int process_id) { 23 int CertStoreImpl::StoreCert(net::X509Certificate* cert, int process_id) {
24 return store_.Store(cert, process_id); 24 return store_.Store(cert, process_id);
25 } 25 }
26 26
27 bool CertStoreImpl::RetrieveCert(int cert_id, 27 bool CertStoreImpl::RetrieveCert(int cert_id,
28 scoped_refptr<net::X509Certificate>* cert) { 28 scoped_refptr<net::X509Certificate>* cert) {
29 return store_.Retrieve(cert_id, cert); 29 return store_.Retrieve(cert_id, cert);
30 } 30 }
31 31
32 } // namespace content 32 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/cert_store_impl.h ('k') | content/browser/child_process_security_policy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698