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

Side by Side Diff: net/tools/quic/quic_client_base.cc

Issue 2363393004: Remove usage of BalsaHeaders from QuicClient. Also move QuicDataToResend from QuicClient to QuicCli… (Closed)
Patch Set: Fix win Created 4 years, 2 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/tools/quic/quic_client_base.h ('k') | net/tools/quic/quic_client_bin.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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/tools/quic/quic_client_base.h" 5 #include "net/tools/quic/quic_client_base.h"
6 6
7 #include "net/quic/core/crypto/quic_random.h" 7 #include "net/quic/core/crypto/quic_random.h"
8 #include "net/quic/core/quic_server_id.h" 8 #include "net/quic/core/quic_server_id.h"
9 9
10 using base::StringPiece;
11
10 namespace net { 12 namespace net {
11 13
14 QuicClientBase::QuicDataToResend::QuicDataToResend(
15 std::unique_ptr<SpdyHeaderBlock> headers,
16 StringPiece body,
17 bool fin)
18 : headers_(std::move(headers)), body_(body), fin_(fin) {}
19
20 QuicClientBase::QuicDataToResend::~QuicDataToResend() {}
21
12 QuicClientBase::QuicClientBase(const QuicServerId& server_id, 22 QuicClientBase::QuicClientBase(const QuicServerId& server_id,
13 const QuicVersionVector& supported_versions, 23 const QuicVersionVector& supported_versions,
14 const QuicConfig& config, 24 const QuicConfig& config,
15 QuicConnectionHelperInterface* helper, 25 QuicConnectionHelperInterface* helper,
16 QuicAlarmFactory* alarm_factory, 26 QuicAlarmFactory* alarm_factory,
17 std::unique_ptr<ProofVerifier> proof_verifier) 27 std::unique_ptr<ProofVerifier> proof_verifier)
18 : server_id_(server_id), 28 : server_id_(server_id),
19 config_(config), 29 config_(config),
20 crypto_config_(std::move(proof_verifier)), 30 crypto_config_(std::move(proof_verifier)),
21 helper_(helper), 31 helper_(helper),
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 return cached->has_server_designated_connection_id() 154 return cached->has_server_designated_connection_id()
145 ? cached->GetNextServerDesignatedConnectionId() 155 ? cached->GetNextServerDesignatedConnectionId()
146 : 0; 156 : 0;
147 } 157 }
148 158
149 QuicConnectionId QuicClientBase::GenerateNewConnectionId() { 159 QuicConnectionId QuicClientBase::GenerateNewConnectionId() {
150 return QuicRandom::GetInstance()->RandUint64(); 160 return QuicRandom::GetInstance()->RandUint64();
151 } 161 }
152 162
153 } // namespace net 163 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client_base.h ('k') | net/tools/quic/quic_client_bin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698