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

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

Issue 107803002: Consistently suggest ephemeral port for QUIC client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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
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_STREAM_FACTORY_H_ 5 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_
6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 std::vector<std::string> cannoncial_suffixes_; 223 std::vector<std::string> cannoncial_suffixes_;
224 224
225 QuicConfig config_; 225 QuicConfig config_;
226 226
227 JobMap active_jobs_; 227 JobMap active_jobs_;
228 JobRequestsMap job_requests_map_; 228 JobRequestsMap job_requests_map_;
229 RequestMap active_requests_; 229 RequestMap active_requests_;
230 230
231 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 231 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
232 232
233 // Entropy to help consistently select the same ephemeral port for repeated
234 // connections to the same server.
wtc 2013/12/06 23:36:44 This comment is confusing because it describes a p
jar (doing other things) 2013/12/07 00:47:58 Extended comment. See if this is clearer.
235 uint64 port_entropy_;
236
233 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 237 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
234 }; 238 };
235 239
236 } // namespace net 240 } // namespace net
237 241
238 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 242 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698