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

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

Issue 987693006: CL generated with data from dead-code analysis using (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Add_explicit_87956343
Patch Set: Created 5 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
« no previous file with comments | « no previous file | 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 class NET_EXPORT_PRIVATE QuicNegotiableTag : public QuicNegotiableValue { 111 class NET_EXPORT_PRIVATE QuicNegotiableTag : public QuicNegotiableValue {
112 public: 112 public:
113 QuicNegotiableTag(QuicTag name, QuicConfigPresence presence); 113 QuicNegotiableTag(QuicTag name, QuicConfigPresence presence);
114 ~QuicNegotiableTag() override; 114 ~QuicNegotiableTag() override;
115 115
116 // Sets the possible values that |negotiated_tag_| can take after negotiation 116 // Sets the possible values that |negotiated_tag_| can take after negotiation
117 // and the default value that |negotiated_tag_| takes if OPTIONAL and *HLO 117 // and the default value that |negotiated_tag_| takes if OPTIONAL and *HLO
118 // msg doesn't contain tag |name_|. 118 // msg doesn't contain tag |name_|.
119 void set(const QuicTagVector& possible_values, QuicTag default_value); 119 void set(const QuicTagVector& possible_values, QuicTag default_value);
120 120
121 // Returns the negotiated tag if |negotiated_| is true, otherwise returns
122 // |default_value_| (used to set default values before negotiation finishes).
123 QuicTag GetTag() const;
124
125 // Serialises |name_| and vector (either possible or negotiated) to |out|. If 121 // Serialises |name_| and vector (either possible or negotiated) to |out|. If
126 // |negotiated_| is true then |negotiated_tag_| is serialised, otherwise 122 // |negotiated_| is true then |negotiated_tag_| is serialised, otherwise
127 // |possible_values_| is serialised. 123 // |possible_values_| is serialised.
128 void ToHandshakeMessage(CryptoHandshakeMessage* out) const override; 124 void ToHandshakeMessage(CryptoHandshakeMessage* out) const override;
129 125
130 // Selects the tag common to both tags in |client_hello| for |name_| and 126 // Selects the tag common to both tags in |client_hello| for |name_| and
131 // |possible_values_| with preference to tag in |possible_values_|. The 127 // |possible_values_| with preference to tag in |possible_values_|. The
132 // selected tag is set as |negotiated_tag_|. 128 // selected tag is set as |negotiated_tag_|.
133 QuicErrorCode ProcessPeerHello(const CryptoHandshakeMessage& peer_hello, 129 QuicErrorCode ProcessPeerHello(const CryptoHandshakeMessage& peer_hello,
134 HelloType hello_type, 130 HelloType hello_type,
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // Initial session flow control receive window in bytes. 361 // Initial session flow control receive window in bytes.
366 QuicFixedUint32 initial_session_flow_control_window_bytes_; 362 QuicFixedUint32 initial_session_flow_control_window_bytes_;
367 363
368 // Socket receive buffer in bytes. 364 // Socket receive buffer in bytes.
369 QuicFixedUint32 socket_receive_buffer_; 365 QuicFixedUint32 socket_receive_buffer_;
370 }; 366 };
371 367
372 } // namespace net 368 } // namespace net
373 369
374 #endif // NET_QUIC_QUIC_CONFIG_H_ 370 #endif // NET_QUIC_QUIC_CONFIG_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698