Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Unified Diff: net/quic/quic_stream_factory.h

Issue 1744693002: Implement QUIC-based net::BidirectionalStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basecl
Patch Set: Address comments and fixed tests Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/quic/quic_stream_factory.h
diff --git a/net/quic/quic_stream_factory.h b/net/quic/quic_stream_factory.h
index 919f9ea784f3a86fe6a7ecb8ee791141866dc51c..77763c2be801c57a6e4a89d785f6b507125d694f 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);
};

Powered by Google App Engine
This is Rietveld 408576698