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

Side by Side Diff: content/browser/signed_certificate_timestamp_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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/signed_certificate_timestamp_store_impl.h" 5 #include "content/browser/signed_certificate_timestamp_store_impl.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 // static 11 // static
12 SignedCertificateTimestampStore* 12 SignedCertificateTimestampStore*
13 SignedCertificateTimestampStore::GetInstance() { 13 SignedCertificateTimestampStore::GetInstance() {
14 return SignedCertificateTimestampStoreImpl::GetInstance(); 14 return SignedCertificateTimestampStoreImpl::GetInstance();
15 } 15 }
16 16
17 // static 17 // static
18 SignedCertificateTimestampStoreImpl* 18 SignedCertificateTimestampStoreImpl*
19 SignedCertificateTimestampStoreImpl::GetInstance() { 19 SignedCertificateTimestampStoreImpl::GetInstance() {
20 return Singleton<SignedCertificateTimestampStoreImpl>::get(); 20 return base::Singleton<SignedCertificateTimestampStoreImpl>::get();
21 } 21 }
22 22
23 SignedCertificateTimestampStoreImpl::SignedCertificateTimestampStoreImpl() {} 23 SignedCertificateTimestampStoreImpl::SignedCertificateTimestampStoreImpl() {}
24 24
25 SignedCertificateTimestampStoreImpl::~SignedCertificateTimestampStoreImpl() {} 25 SignedCertificateTimestampStoreImpl::~SignedCertificateTimestampStoreImpl() {}
26 26
27 int SignedCertificateTimestampStoreImpl::Store( 27 int SignedCertificateTimestampStoreImpl::Store(
28 net::ct::SignedCertificateTimestamp* sct, 28 net::ct::SignedCertificateTimestamp* sct,
29 int process_id) { 29 int process_id) {
30 return store_.Store(sct, process_id); 30 return store_.Store(sct, process_id);
31 } 31 }
32 32
33 bool SignedCertificateTimestampStoreImpl::Retrieve( 33 bool SignedCertificateTimestampStoreImpl::Retrieve(
34 int sct_id, 34 int sct_id,
35 scoped_refptr<net::ct::SignedCertificateTimestamp>* sct) { 35 scoped_refptr<net::ct::SignedCertificateTimestamp>* sct) {
36 return store_.Retrieve(sct_id, sct); 36 return store_.Retrieve(sct_id, sct);
37 } 37 }
38 38
39 } // namespace content 39 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/signed_certificate_timestamp_store_impl.h ('k') | content/browser/tcmalloc_internals_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698