| Index: net/quic/quic_stream_factory.h
|
| diff --git a/net/quic/quic_stream_factory.h b/net/quic/quic_stream_factory.h
|
| index 1986df85369912efa03e314bbaf7242c0033e92a..0cd43126b35085dc578ea210fbcf7720f8f45650 100644
|
| --- a/net/quic/quic_stream_factory.h
|
| +++ b/net/quic/quic_stream_factory.h
|
| @@ -24,7 +24,9 @@
|
| #include "net/base/network_change_notifier.h"
|
| #include "net/cert/cert_database.h"
|
| #include "net/http/http_server_properties.h"
|
| +#include "net/http/http_stream_factory.h"
|
| #include "net/log/net_log.h"
|
| +#include "net/net_features.h"
|
| #include "net/proxy/proxy_server.h"
|
| #include "net/quic/network_connection.h"
|
| #include "net/quic/quic_chromium_client_session.h"
|
| @@ -55,6 +57,7 @@ class QuicServerInfoFactory;
|
| class QuicStreamFactory;
|
| class SocketPerformanceWatcherFactory;
|
| class TransportSecurityState;
|
| +class BidirectionalStreamJob;
|
|
|
| namespace test {
|
| class QuicStreamFactoryPeer;
|
| @@ -87,9 +90,14 @@ class NET_EXPORT_PRIVATE QuicStreamRequest {
|
| // returns the amount of time waiting job should be delayed.
|
| base::TimeDelta GetTimeDelayForWaitingJob() const;
|
|
|
| - scoped_ptr<QuicHttpStream> ReleaseStream();
|
| + scoped_ptr<QuicHttpStream> CreateStream();
|
|
|
| - void set_stream(scoped_ptr<QuicHttpStream> stream);
|
| +#if BUILDFLAG(ENABLE_BIDIRECTIONAL_STREAM)
|
| + scoped_ptr<BidirectionalStreamJob> CreateBidirectionalStreamJob();
|
| +#endif
|
| +
|
| + // Sets |session_|.
|
| + void SetSession(QuicChromiumClientSession* session);
|
|
|
| const std::string& origin_host() const { return origin_host_; }
|
|
|
| @@ -105,7 +113,7 @@ class NET_EXPORT_PRIVATE QuicStreamRequest {
|
| PrivacyMode privacy_mode_;
|
| BoundNetLog net_log_;
|
| CompletionCallback callback_;
|
| - scoped_ptr<QuicHttpStream> stream_;
|
| + base::WeakPtr<QuicChromiumClientSession> session_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(QuicStreamRequest);
|
| };
|
|
|