| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |