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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 void set_stream(scoped_ptr<QuicHttpStream> stream); | 69 void set_stream(scoped_ptr<QuicHttpStream> stream); |
70 | 70 |
71 const BoundNetLog& net_log() const{ | 71 const BoundNetLog& net_log() const{ |
72 return net_log_; | 72 return net_log_; |
73 } | 73 } |
74 | 74 |
75 private: | 75 private: |
76 QuicStreamFactory* factory_; | 76 QuicStreamFactory* factory_; |
77 HostPortPair host_port_pair_; | 77 HostPortPair host_port_pair_; |
78 bool is_https_; | |
79 BoundNetLog net_log_; | 78 BoundNetLog net_log_; |
80 CompletionCallback callback_; | 79 CompletionCallback callback_; |
81 scoped_ptr<QuicHttpStream> stream_; | 80 scoped_ptr<QuicHttpStream> stream_; |
82 | 81 |
83 DISALLOW_COPY_AND_ASSIGN(QuicStreamRequest); | 82 DISALLOW_COPY_AND_ASSIGN(QuicStreamRequest); |
84 }; | 83 }; |
85 | 84 |
86 // A factory for creating new QuicHttpStreams on top of a pool of | 85 // A factory for creating new QuicHttpStreams on top of a pool of |
87 // QuicClientSessions. | 86 // QuicClientSessions. |
88 class NET_EXPORT_PRIVATE QuicStreamFactory | 87 class NET_EXPORT_PRIVATE QuicStreamFactory |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 base::TaskRunner* task_runner_; | 358 base::TaskRunner* task_runner_; |
360 | 359 |
361 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 360 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
362 | 361 |
363 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 362 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
364 }; | 363 }; |
365 | 364 |
366 } // namespace net | 365 } // namespace net |
367 | 366 |
368 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 367 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
OLD | NEW |