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

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

Issue 1502453003: QUIC - Disable Preconnect when QUIC can be spoken to a server with 0RTT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 // We close all sessions when certificate database is changed. 221 // We close all sessions when certificate database is changed.
222 void OnCertAdded(const X509Certificate* cert) override; 222 void OnCertAdded(const X509Certificate* cert) override;
223 void OnCACertChanged(const X509Certificate* cert) override; 223 void OnCACertChanged(const X509Certificate* cert) override;
224 224
225 bool require_confirmation() const { 225 bool require_confirmation() const {
226 return require_confirmation_; 226 return require_confirmation_;
227 } 227 }
228 228
229 void set_require_confirmation(bool require_confirmation); 229 void set_require_confirmation(bool require_confirmation);
230 230
231 bool IsQuicDoingZeroRTT(const HostPortPair& host_port_pair,
Ryan Hamilton 2015/12/05 04:16:17 nit: I suggest a name like SupportsZeroRTT or Zero
ramant (doing other things) 2015/12/07 20:05:39 Done.
232 PrivacyMode privacy_mode);
233
231 // It returns the amount of time waiting job should be delayed. 234 // It returns the amount of time waiting job should be delayed.
232 base::TimeDelta GetTimeDelayForWaitingJob(const QuicServerId& server_id); 235 base::TimeDelta GetTimeDelayForWaitingJob(const QuicServerId& server_id);
233 236
234 QuicConnectionHelper* helper() { return helper_.get(); } 237 QuicConnectionHelper* helper() { return helper_.get(); }
235 238
236 bool enable_port_selection() const { return enable_port_selection_; } 239 bool enable_port_selection() const { return enable_port_selection_; }
237 240
238 bool has_quic_server_info_factory() { 241 bool has_quic_server_info_factory() {
239 return !quic_server_info_factory_.get(); 242 return !quic_server_info_factory_.get();
240 } 243 }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 base::TaskRunner* task_runner_; 470 base::TaskRunner* task_runner_;
468 471
469 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 472 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
470 473
471 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 474 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
472 }; 475 };
473 476
474 } // namespace net 477 } // namespace net
475 478
476 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 479 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698