| 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_CHROMIUM_QUIC_STREAM_FACTORY_H_ | 5 #ifndef NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ |
| 6 #define NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ | 6 #define NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 | 368 |
| 369 bool ZeroRTTEnabledFor(const QuicServerId& server_id); | 369 bool ZeroRTTEnabledFor(const QuicServerId& server_id); |
| 370 | 370 |
| 371 // It returns the amount of time waiting job should be delayed. | 371 // It returns the amount of time waiting job should be delayed. |
| 372 base::TimeDelta GetTimeDelayForWaitingJob(const QuicServerId& server_id); | 372 base::TimeDelta GetTimeDelayForWaitingJob(const QuicServerId& server_id); |
| 373 | 373 |
| 374 QuicChromiumConnectionHelper* helper() { return helper_.get(); } | 374 QuicChromiumConnectionHelper* helper() { return helper_.get(); } |
| 375 | 375 |
| 376 QuicChromiumAlarmFactory* alarm_factory() { return alarm_factory_.get(); } | 376 QuicChromiumAlarmFactory* alarm_factory() { return alarm_factory_.get(); } |
| 377 | 377 |
| 378 bool has_quic_server_info_factory() { | 378 bool has_quic_server_info_factory() const { |
| 379 return quic_server_info_factory_.get() != nullptr; | 379 return quic_server_info_factory_.get() != nullptr; |
| 380 } | 380 } |
| 381 | 381 |
| 382 QuicServerInfoFactory* quic_server_info_factory() const { |
| 383 return quic_server_info_factory_.get(); |
| 384 } |
| 385 |
| 382 void set_quic_server_info_factory( | 386 void set_quic_server_info_factory( |
| 383 QuicServerInfoFactory* quic_server_info_factory); | 387 QuicServerInfoFactory* quic_server_info_factory); |
| 384 | 388 |
| 385 void set_server_push_delegate(ServerPushDelegate* push_delegate) { | 389 void set_server_push_delegate(ServerPushDelegate* push_delegate) { |
| 386 push_delegate_ = push_delegate; | 390 push_delegate_ = push_delegate; |
| 387 } | 391 } |
| 388 | 392 |
| 389 bool enable_connection_racing() const { return enable_connection_racing_; } | 393 bool enable_connection_racing() const { return enable_connection_racing_; } |
| 390 void set_enable_connection_racing(bool enable_connection_racing) { | 394 void set_enable_connection_racing(bool enable_connection_racing) { |
| 391 enable_connection_racing_ = enable_connection_racing; | 395 enable_connection_racing_ = enable_connection_racing; |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 const scoped_refptr<SSLConfigService> ssl_config_service_; | 674 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 671 | 675 |
| 672 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 676 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 673 | 677 |
| 674 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 678 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 675 }; | 679 }; |
| 676 | 680 |
| 677 } // namespace net | 681 } // namespace net |
| 678 | 682 |
| 679 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ | 683 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |