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

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

Issue 602763004: QUIC - Used Quic and IP Address in prefs persistent store. It is (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@persist_global
Patch Set: Fix try bot error Created 6 years, 2 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_stream_factory.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_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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // CertDatabase::Observer methods: 153 // CertDatabase::Observer methods:
154 154
155 // We close all sessions when certificate database is changed. 155 // We close all sessions when certificate database is changed.
156 virtual void OnCertAdded(const X509Certificate* cert) OVERRIDE; 156 virtual void OnCertAdded(const X509Certificate* cert) OVERRIDE;
157 virtual void OnCACertChanged(const X509Certificate* cert) OVERRIDE; 157 virtual void OnCACertChanged(const X509Certificate* cert) OVERRIDE;
158 158
159 bool require_confirmation() const { 159 bool require_confirmation() const {
160 return require_confirmation_; 160 return require_confirmation_;
161 } 161 }
162 162
163 void set_require_confirmation(bool require_confirmation) { 163 void set_require_confirmation(bool require_confirmation);
164 require_confirmation_ = require_confirmation;
165 }
166 164
167 QuicConnectionHelper* helper() { return helper_.get(); } 165 QuicConnectionHelper* helper() { return helper_.get(); }
168 166
169 bool enable_port_selection() const { return enable_port_selection_; } 167 bool enable_port_selection() const { return enable_port_selection_; }
170 168
171 bool has_quic_server_info_factory() { 169 bool has_quic_server_info_factory() {
172 return quic_server_info_factory_ != NULL; 170 return quic_server_info_factory_ != NULL;
173 } 171 }
174 172
175 void set_quic_server_info_factory( 173 void set_quic_server_info_factory(
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 bool disable_connection_pooling_; 284 bool disable_connection_pooling_;
287 285
288 // Each profile will (probably) have a unique port_seed_ value. This value is 286 // Each profile will (probably) have a unique port_seed_ value. This value is
289 // used to help seed a pseudo-random number generator (PortSuggester) so that 287 // used to help seed a pseudo-random number generator (PortSuggester) so that
290 // we consistently (within this profile) suggest the same ephemeral port when 288 // we consistently (within this profile) suggest the same ephemeral port when
291 // we re-connect to any given server/port. The differences between profiles 289 // we re-connect to any given server/port. The differences between profiles
292 // (probablistically) prevent two profiles from colliding in their ephemeral 290 // (probablistically) prevent two profiles from colliding in their ephemeral
293 // port requests. 291 // port requests.
294 uint64 port_seed_; 292 uint64 port_seed_;
295 293
294 // Local address of socket that was created in CreateSession.
295 IPEndPoint local_address_;
296 bool check_persisted_supports_quic_;
297
296 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 298 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
297 299
298 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 300 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
299 }; 301 };
300 302
301 } // namespace net 303 } // namespace net
302 304
303 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 305 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698