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

Unified Diff: net/quic/quartc/quartc_session.cc

Issue 2862563003: Landing Recent QUIC changes until Sat Apr 29 00:22:04 2017 +0000 (Closed)
Patch Set: rebase and fix test bugs detected by swarm bot. Created 3 years, 7 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
« no previous file with comments | « net/quic/quartc/quartc_session.h ('k') | net/quic/test_tools/quic_spdy_session_peer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quartc/quartc_session.cc
diff --git a/net/quic/quartc/quartc_session.cc b/net/quic/quartc/quartc_session.cc
index 92e3c485d506640b579c4737f1f91936833cde67..0e839c9d437a07014eec61c22de1b07433ba8574 100644
--- a/net/quic/quartc/quartc_session.cc
+++ b/net/quic/quartc/quartc_session.cc
@@ -4,6 +4,8 @@
#include "net/quic/quartc/quartc_session.h"
+#include "net/quic/platform/api/quic_ptr_util.h"
+
using std::string;
namespace net {
@@ -273,6 +275,11 @@ QuicStream* QuartcSession::CreateIncomingDynamicStream(QuicStreamId id) {
return stream;
}
+std::unique_ptr<QuicStream> QuartcSession::CreateStream(QuicStreamId id) {
+ QuartcStream* stream = CreateDataStream(id, kDefaultPriority);
+ return QuicWrapUnique(stream);
+}
+
QuartcStream* QuartcSession::CreateDataStream(QuicStreamId id,
SpdyPriority priority) {
if (crypto_stream_ == nullptr || !crypto_stream_->encryption_established()) {
« no previous file with comments | « net/quic/quartc/quartc_session.h ('k') | net/quic/test_tools/quic_spdy_session_peer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698