| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 133 |
| 134 return false; | 134 return false; |
| 135 } | 135 } |
| 136 | 136 |
| 137 static CommonCertSetsQUIC* GetInstance() { | 137 static CommonCertSetsQUIC* GetInstance() { |
| 138 return Singleton<CommonCertSetsQUIC>::get(); | 138 return Singleton<CommonCertSetsQUIC>::get(); |
| 139 } | 139 } |
| 140 | 140 |
| 141 private: | 141 private: |
| 142 CommonCertSetsQUIC() {} | 142 CommonCertSetsQUIC() {} |
| 143 virtual ~CommonCertSetsQUIC() {} | 143 virtual ~CommonCertSetsQUIC() OVERRIDE {} |
| 144 | 144 |
| 145 friend struct DefaultSingletonTraits<CommonCertSetsQUIC>; | 145 friend struct DefaultSingletonTraits<CommonCertSetsQUIC>; |
| 146 DISALLOW_COPY_AND_ASSIGN(CommonCertSetsQUIC); | 146 DISALLOW_COPY_AND_ASSIGN(CommonCertSetsQUIC); |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 } // anonymous namespace | 149 } // anonymous namespace |
| 150 | 150 |
| 151 CommonCertSets::~CommonCertSets() {} | 151 CommonCertSets::~CommonCertSets() {} |
| 152 | 152 |
| 153 // static | 153 // static |
| 154 const CommonCertSets* CommonCertSets::GetInstanceQUIC() { | 154 const CommonCertSets* CommonCertSets::GetInstanceQUIC() { |
| 155 return CommonCertSetsQUIC::GetInstance(); | 155 return CommonCertSetsQUIC::GetInstance(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 } // namespace net | 158 } // namespace net |
| OLD | NEW |