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

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

Issue 683263003: Turning off CID truncation for proxied connections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Protect_UpdateRTT_from_negative_deltas_78580114
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_config.h ('k') | net/quic/quic_connection.h » ('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/quic_config.h" 5 #include "net/quic/quic_config.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "net/quic/crypto/crypto_handshake_message.h" 10 #include "net/quic/crypto/crypto_handshake_message.h"
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 501
502 void QuicConfig::SetMaxStreamsPerConnection(size_t max_streams, 502 void QuicConfig::SetMaxStreamsPerConnection(size_t max_streams,
503 size_t default_streams) { 503 size_t default_streams) {
504 max_streams_per_connection_.set(max_streams, default_streams); 504 max_streams_per_connection_.set(max_streams, default_streams);
505 } 505 }
506 506
507 uint32 QuicConfig::MaxStreamsPerConnection() const { 507 uint32 QuicConfig::MaxStreamsPerConnection() const {
508 return max_streams_per_connection_.GetUint32(); 508 return max_streams_per_connection_.GetUint32();
509 } 509 }
510 510
511 bool QuicConfig::HasSetBytesForConnectionIdToSend() const {
512 return bytes_for_connection_id_.HasSendValue();
513 }
514
511 void QuicConfig::SetBytesForConnectionIdToSend(uint32 bytes) { 515 void QuicConfig::SetBytesForConnectionIdToSend(uint32 bytes) {
512 bytes_for_connection_id_.SetSendValue(bytes); 516 bytes_for_connection_id_.SetSendValue(bytes);
513 } 517 }
514 518
515 bool QuicConfig::HasReceivedBytesForConnectionId() const { 519 bool QuicConfig::HasReceivedBytesForConnectionId() const {
516 return bytes_for_connection_id_.HasReceivedValue(); 520 return bytes_for_connection_id_.HasReceivedValue();
517 } 521 }
518 522
519 uint32 QuicConfig::ReceivedBytesForConnectionId() const { 523 uint32 QuicConfig::ReceivedBytesForConnectionId() const {
520 return bytes_for_connection_id_.GetReceivedValue(); 524 return bytes_for_connection_id_.GetReceivedValue();
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 peer_hello, hello_type, error_details); 736 peer_hello, hello_type, error_details);
733 } 737 }
734 if (error == QUIC_NO_ERROR) { 738 if (error == QUIC_NO_ERROR) {
735 error = connection_options_.ProcessPeerHello( 739 error = connection_options_.ProcessPeerHello(
736 peer_hello, hello_type, error_details); 740 peer_hello, hello_type, error_details);
737 } 741 }
738 return error; 742 return error;
739 } 743 }
740 744
741 } // namespace net 745 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_config.h ('k') | net/quic/quic_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698