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

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

Issue 189403002: QUIC - Minor cleanup changes to match the internal source code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use public ::testing:: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/congestion_control/time_loss_algorithm_test.cc ('k') | net/quic/quic_config.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) 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 #ifndef NET_QUIC_QUIC_CONFIG_H_ 5 #ifndef NET_QUIC_QUIC_CONFIG_H_
6 #define NET_QUIC_QUIC_CONFIG_H_ 6 #define NET_QUIC_QUIC_CONFIG_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 10 matching lines...) Expand all
21 // This value can be absent from the handshake message. Default value is 21 // This value can be absent from the handshake message. Default value is
22 // selected as the negotiated value in such a case. 22 // selected as the negotiated value in such a case.
23 PRESENCE_OPTIONAL, 23 PRESENCE_OPTIONAL,
24 // This value is required in the handshake message otherwise the Process*Hello 24 // This value is required in the handshake message otherwise the Process*Hello
25 // function returns an error. 25 // function returns an error.
26 PRESENCE_REQUIRED, 26 PRESENCE_REQUIRED,
27 }; 27 };
28 28
29 // An abstract base class that stores a value that can be sent in CHLO/SHLO 29 // An abstract base class that stores a value that can be sent in CHLO/SHLO
30 // message. These values can be OPTIONAL or REQUIRED, depending on |presence_|. 30 // message. These values can be OPTIONAL or REQUIRED, depending on |presence_|.
31 class NET_EXPORT_PRIVATE QuicConfigValue { 31 class NET_EXPORT_PRIVATE QuicConfigValue {
32 public: 32 public:
33 QuicConfigValue(QuicTag tag, QuicConfigPresence presence); 33 QuicConfigValue(QuicTag tag, QuicConfigPresence presence);
34 virtual ~QuicConfigValue(); 34 virtual ~QuicConfigValue();
35 35
36 // Serialises tag name and value(s) to |out|. 36 // Serialises tag name and value(s) to |out|.
37 virtual void ToHandshakeMessage(CryptoHandshakeMessage* out) const = 0; 37 virtual void ToHandshakeMessage(CryptoHandshakeMessage* out) const = 0;
38 38
39 // Selects a mutually acceptable value from those offered in |client_hello| 39 // Selects a mutually acceptable value from those offered in |client_hello|
40 // and those defined in the subclass. 40 // and those defined in the subclass.
41 virtual QuicErrorCode ProcessClientHello( 41 virtual QuicErrorCode ProcessClientHello(
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 QuicNegotiableUint32 server_initial_congestion_window_; 269 QuicNegotiableUint32 server_initial_congestion_window_;
270 // Initial round trip time estimate in microseconds. 270 // Initial round trip time estimate in microseconds.
271 QuicNegotiableUint32 initial_round_trip_time_us_; 271 QuicNegotiableUint32 initial_round_trip_time_us_;
272 // Peer's initial flow control receive window in bytes. 272 // Peer's initial flow control receive window in bytes.
273 QuicFixedUint32 peer_initial_flow_control_window_bytes_; 273 QuicFixedUint32 peer_initial_flow_control_window_bytes_;
274 }; 274 };
275 275
276 } // namespace net 276 } // namespace net
277 277
278 #endif // NET_QUIC_QUIC_CONFIG_H_ 278 #endif // NET_QUIC_QUIC_CONFIG_H_
OLDNEW
« no previous file with comments | « net/quic/congestion_control/time_loss_algorithm_test.cc ('k') | net/quic/quic_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698