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

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: Fix test name 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
« no previous file with comments | « net/net.gypi ('k') | 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 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 ZeroRTTEnabledFor(const QuicServerId& server_id);
232
231 // It returns the amount of time waiting job should be delayed. 233 // It returns the amount of time waiting job should be delayed.
232 base::TimeDelta GetTimeDelayForWaitingJob(const QuicServerId& server_id); 234 base::TimeDelta GetTimeDelayForWaitingJob(const QuicServerId& server_id);
233 235
234 QuicConnectionHelper* helper() { return helper_.get(); } 236 QuicConnectionHelper* helper() { return helper_.get(); }
235 237
236 bool enable_port_selection() const { return enable_port_selection_; } 238 bool enable_port_selection() const { return enable_port_selection_; }
237 239
238 bool has_quic_server_info_factory() { 240 bool has_quic_server_info_factory() {
239 return !quic_server_info_factory_.get(); 241 return !quic_server_info_factory_.get();
240 } 242 }
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 base::TaskRunner* task_runner_; 469 base::TaskRunner* task_runner_;
468 470
469 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 471 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
470 472
471 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 473 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
472 }; 474 };
473 475
474 } // namespace net 476 } // namespace net
475 477
476 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 478 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/net.gypi ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698