| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 | 146 |
| 147 return false; | 147 return false; |
| 148 } | 148 } |
| 149 | 149 |
| 150 static CommonCertSetsQUIC* GetInstance() { | 150 static CommonCertSetsQUIC* GetInstance() { |
| 151 return Singleton<CommonCertSetsQUIC>::get(); | 151 return Singleton<CommonCertSetsQUIC>::get(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 private: | 154 private: |
| 155 CommonCertSetsQUIC() {} | 155 CommonCertSetsQUIC() {} |
| 156 virtual ~CommonCertSetsQUIC() {} | 156 ~CommonCertSetsQUIC() override {} |
| 157 | 157 |
| 158 friend struct DefaultSingletonTraits<CommonCertSetsQUIC>; | 158 friend struct DefaultSingletonTraits<CommonCertSetsQUIC>; |
| 159 DISALLOW_COPY_AND_ASSIGN(CommonCertSetsQUIC); | 159 DISALLOW_COPY_AND_ASSIGN(CommonCertSetsQUIC); |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 } // anonymous namespace | 162 } // anonymous namespace |
| 163 | 163 |
| 164 CommonCertSets::~CommonCertSets() {} | 164 CommonCertSets::~CommonCertSets() {} |
| 165 | 165 |
| 166 // static | 166 // static |
| 167 const CommonCertSets* CommonCertSets::GetInstanceQUIC() { | 167 const CommonCertSets* CommonCertSets::GetInstanceQUIC() { |
| 168 return CommonCertSetsQUIC::GetInstance(); | 168 return CommonCertSetsQUIC::GetInstance(); |
| 169 } | 169 } |
| 170 | 170 |
| 171 } // namespace net | 171 } // namespace net |
| OLD | NEW |