OLD | NEW |
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 Loading... |
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 |
OLD | NEW |