| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 bool require_confirmation() const { return require_confirmation_; } | 151 bool require_confirmation() const { return require_confirmation_; } |
| 152 | 152 |
| 153 void set_require_confirmation(bool require_confirmation) { | 153 void set_require_confirmation(bool require_confirmation) { |
| 154 require_confirmation_ = require_confirmation; | 154 require_confirmation_ = require_confirmation; |
| 155 } | 155 } |
| 156 | 156 |
| 157 QuicConnectionHelper* helper() { return helper_.get(); } | 157 QuicConnectionHelper* helper() { return helper_.get(); } |
| 158 | 158 |
| 159 bool enable_port_selection() const { return enable_port_selection_; } | 159 bool enable_port_selection() const { return enable_port_selection_; } |
| 160 | 160 |
| 161 bool has_quic_server_info_factory() { |
| 162 return quic_server_info_factory_ != NULL; |
| 163 } |
| 164 |
| 161 void set_quic_server_info_factory( | 165 void set_quic_server_info_factory( |
| 162 QuicServerInfoFactory* quic_server_info_factory) { | 166 QuicServerInfoFactory* quic_server_info_factory) { |
| 163 DCHECK(!quic_server_info_factory_); | 167 DCHECK(!quic_server_info_factory_); |
| 164 quic_server_info_factory_ = quic_server_info_factory; | 168 quic_server_info_factory_ = quic_server_info_factory; |
| 165 } | 169 } |
| 166 | 170 |
| 167 bool enable_pacing() const { return enable_pacing_; } | 171 bool enable_pacing() const { return enable_pacing_; } |
| 168 | 172 |
| 169 private: | 173 private: |
| 170 class Job; | 174 class Job; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 uint64 port_seed_; | 282 uint64 port_seed_; |
| 279 | 283 |
| 280 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 284 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 281 | 285 |
| 282 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 286 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 283 }; | 287 }; |
| 284 | 288 |
| 285 } // namespace net | 289 } // namespace net |
| 286 | 290 |
| 287 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 291 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |