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

Side by Side Diff: net/quic/core/crypto/common_cert_set.cc

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 4 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/quic/core/crypto/common_cert_set.h ('k') | net/quic/core/crypto/common_cert_set_1.c » ('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/core/crypto/common_cert_set.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 #include "net/quic/quic_utils.h" 12 #include "net/quic/core/quic_utils.h"
13 13
14 using base::StringPiece; 14 using base::StringPiece;
15 15
16 namespace net { 16 namespace net {
17 17
18 namespace common_cert_set_1 { 18 namespace common_cert_set_1 {
19 #include "net/quic/crypto/common_cert_set_1.c" 19 #include "net/quic/core/crypto/common_cert_set_1.c"
20 } 20 }
21 21
22 namespace common_cert_set_2 { 22 namespace common_cert_set_2 {
23 #include "net/quic/crypto/common_cert_set_2.c" 23 #include "net/quic/core/crypto/common_cert_set_2.c"
24 } 24 }
25 25
26 namespace { 26 namespace {
27 27
28 struct CertSet { 28 struct CertSet {
29 // num_certs contains the number of certificates in this set. 29 // num_certs contains the number of certificates in this set.
30 size_t num_certs; 30 size_t num_certs;
31 // certs is an array of |num_certs| pointers to the DER encoded certificates. 31 // certs is an array of |num_certs| pointers to the DER encoded certificates.
32 const unsigned char* const* certs; 32 const unsigned char* const* certs;
33 // lens is an array of |num_certs| integers describing the length, in bytes, 33 // lens is an array of |num_certs| integers describing the length, in bytes,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 } // anonymous namespace 159 } // anonymous namespace
160 160
161 CommonCertSets::~CommonCertSets() {} 161 CommonCertSets::~CommonCertSets() {}
162 162
163 // static 163 // static
164 const CommonCertSets* CommonCertSets::GetInstanceQUIC() { 164 const CommonCertSets* CommonCertSets::GetInstanceQUIC() {
165 return CommonCertSetsQUIC::GetInstance(); 165 return CommonCertSetsQUIC::GetInstance();
166 } 166 }
167 167
168 } // namespace net 168 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/crypto/common_cert_set.h ('k') | net/quic/core/crypto/common_cert_set_1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698