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

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

Issue 1421853006: Landing Recent QUIC changes until: Fri Oct 30 22:23:58 2015 +0000 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 5 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_crypto_client_stream_test.cc ('k') | net/quic/quic_crypto_server_stream.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CRYPTO_SERVER_STREAM_H_ 5 #ifndef NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
6 #define NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ 6 #define NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/quic/crypto/crypto_handshake.h" 10 #include "net/quic/crypto/crypto_handshake.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 void set_previous_cached_network_params( 86 void set_previous_cached_network_params(
87 CachedNetworkParameters cached_network_params); 87 CachedNetworkParameters cached_network_params);
88 88
89 const CachedNetworkParameters* previous_cached_network_params() const; 89 const CachedNetworkParameters* previous_cached_network_params() const;
90 90
91 bool use_stateless_rejects_if_peer_supported() const { 91 bool use_stateless_rejects_if_peer_supported() const {
92 return use_stateless_rejects_if_peer_supported_; 92 return use_stateless_rejects_if_peer_supported_;
93 } 93 }
94 94
95 // Used by the quic dispatcher to indicate that this crypto server
96 // stream should use stateless rejects, so long as stateless rejects
97 // are supported by the client.
98 void set_use_stateless_rejects_if_peer_supported(
99 bool use_stateless_rejects_if_peer_supported) {
100 use_stateless_rejects_if_peer_supported_ =
101 use_stateless_rejects_if_peer_supported;
102 }
103
104 bool peer_supports_stateless_rejects() const { 95 bool peer_supports_stateless_rejects() const {
105 return peer_supports_stateless_rejects_; 96 return peer_supports_stateless_rejects_;
106 } 97 }
107 98
108 void set_peer_supports_stateless_rejects( 99 void set_peer_supports_stateless_rejects(
109 bool peer_supports_stateless_rejects) { 100 bool peer_supports_stateless_rejects) {
110 peer_supports_stateless_rejects_ = peer_supports_stateless_rejects; 101 peer_supports_stateless_rejects_ = peer_supports_stateless_rejects;
111 } 102 }
112 103
113 protected: 104 protected:
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // TODO(jokulik): Remove once client stateless reject support 191 // TODO(jokulik): Remove once client stateless reject support
201 // becomes the default. 192 // becomes the default.
202 bool peer_supports_stateless_rejects_; 193 bool peer_supports_stateless_rejects_;
203 194
204 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream); 195 DISALLOW_COPY_AND_ASSIGN(QuicCryptoServerStream);
205 }; 196 };
206 197
207 } // namespace net 198 } // namespace net
208 199
209 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_ 200 #endif // NET_QUIC_QUIC_CRYPTO_SERVER_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_client_stream_test.cc ('k') | net/quic/quic_crypto_server_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698