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

Side by Side Diff: net/quic/crypto/common_cert_set.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 | « net/proxy/in_process_mojo_proxy_resolver_factory.cc ('k') | net/quic/crypto/quic_random.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "net/quic/crypto/common_cert_set.h" 5 #include "net/quic/crypto/common_cert_set.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "net/quic/quic_utils.h" 10 #include "net/quic/quic_utils.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 return true; 130 return true;
131 } 131 }
132 } 132 }
133 } 133 }
134 } 134 }
135 135
136 return false; 136 return false;
137 } 137 }
138 138
139 static CommonCertSetsQUIC* GetInstance() { 139 static CommonCertSetsQUIC* GetInstance() {
140 return Singleton<CommonCertSetsQUIC>::get(); 140 return base::Singleton<CommonCertSetsQUIC>::get();
141 } 141 }
142 142
143 private: 143 private:
144 CommonCertSetsQUIC() {} 144 CommonCertSetsQUIC() {}
145 ~CommonCertSetsQUIC() override {} 145 ~CommonCertSetsQUIC() override {}
146 146
147 friend struct DefaultSingletonTraits<CommonCertSetsQUIC>; 147 friend struct base::DefaultSingletonTraits<CommonCertSetsQUIC>;
148 DISALLOW_COPY_AND_ASSIGN(CommonCertSetsQUIC); 148 DISALLOW_COPY_AND_ASSIGN(CommonCertSetsQUIC);
149 }; 149 };
150 150
151 } // anonymous namespace 151 } // anonymous namespace
152 152
153 CommonCertSets::~CommonCertSets() {} 153 CommonCertSets::~CommonCertSets() {}
154 154
155 // static 155 // static
156 const CommonCertSets* CommonCertSets::GetInstanceQUIC() { 156 const CommonCertSets* CommonCertSets::GetInstanceQUIC() {
157 return CommonCertSetsQUIC::GetInstance(); 157 return CommonCertSetsQUIC::GetInstance();
158 } 158 }
159 159
160 } // namespace net 160 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/in_process_mojo_proxy_resolver_factory.cc ('k') | net/quic/crypto/quic_random.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698