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

Side by Side Diff: net/quic/quic_client_session_base.cc

Issue 706203003: Update from https://crrev.com/303153 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/quic_client_session_base.h ('k') | net/quic/quic_client_session_test.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/quic_client_session_base.h" 5 #include "net/quic/quic_client_session_base.h"
6 6
7 #include "net/quic/quic_flags.h" 7 #include "net/quic/quic_flags.h"
8 8
9 namespace net { 9 namespace net {
10 10
11 QuicClientSessionBase::QuicClientSessionBase( 11 QuicClientSessionBase::QuicClientSessionBase(
12 QuicConnection* connection, 12 QuicConnection* connection,
13 const QuicConfig& config) 13 const QuicConfig& config,
14 : QuicSession(connection, config) {} 14 bool is_secure)
15 : QuicSession(connection, config, is_secure) {}
15 16
16 QuicClientSessionBase::~QuicClientSessionBase() {} 17 QuicClientSessionBase::~QuicClientSessionBase() {}
17 18
18 void QuicClientSessionBase::OnCryptoHandshakeEvent(CryptoHandshakeEvent event) { 19 void QuicClientSessionBase::OnCryptoHandshakeEvent(CryptoHandshakeEvent event) {
19 QuicSession::OnCryptoHandshakeEvent(event); 20 QuicSession::OnCryptoHandshakeEvent(event);
20 // Set FEC policy for streams immediately after sending CHLO and before any 21 // Set FEC policy for streams immediately after sending CHLO and before any
21 // more data is sent. 22 // more data is sent.
22 if (!FLAGS_enable_quic_fec || 23 if (!FLAGS_enable_quic_fec ||
23 event != ENCRYPTION_FIRST_ESTABLISHED || 24 event != ENCRYPTION_FIRST_ESTABLISHED ||
24 !config()->HasSendConnectionOptions() || 25 !config()->HasSendConnectionOptions() ||
25 !ContainsQuicTag(config()->SendConnectionOptions(), kFHDR)) { 26 !ContainsQuicTag(config()->SendConnectionOptions(), kFHDR)) {
26 return; 27 return;
27 } 28 }
28 // kFHDR config maps to FEC protection always for headers stream. 29 // kFHDR config maps to FEC protection always for headers stream.
29 // TODO(jri): Add crypto stream in addition to headers for kHDR. 30 // TODO(jri): Add crypto stream in addition to headers for kHDR.
30 headers_stream_->set_fec_policy(FEC_PROTECT_ALWAYS); 31 headers_stream_->set_fec_policy(FEC_PROTECT_ALWAYS);
31 } 32 }
32 33
33 } // namespace net 34 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_client_session_base.h ('k') | net/quic/quic_client_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698