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

Unified Diff: net/tools/quic/quic_simple_server_session.cc

Issue 2856243003: Revert of Landing Recent QUIC changes until Sat Apr 29 00:22:04 2017 +0000 (Closed)
Patch Set: 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/tools/quic/quic_simple_server_session.h ('k') | net/tools/quic/quic_simple_server_session_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_server_session.cc
diff --git a/net/tools/quic/quic_simple_server_session.cc b/net/tools/quic/quic_simple_server_session.cc
index c4392c11c1ee33834fcd72fd6008374ac0e91921..4f3ed4b473abf1dee2b82c2a15b1f1f4a76190e2 100644
--- a/net/tools/quic/quic_simple_server_session.cc
+++ b/net/tools/quic/quic_simple_server_session.cc
@@ -114,11 +114,6 @@
return stream;
}
-std::unique_ptr<QuicStream> QuicSimpleServerSession::CreateStream(
- QuicStreamId id) {
- return QuicMakeUnique<QuicSimpleServerStream>(id, this, response_cache_);
-}
-
void QuicSimpleServerSession::CloseStreamInner(QuicStreamId stream_id,
bool locally_reset) {
QuicSpdySession::CloseStreamInner(stream_id, locally_reset);
@@ -187,10 +182,7 @@
}
void QuicSimpleServerSession::HandlePromisedPushRequests() {
- while (!promised_streams_.empty() &&
- (FLAGS_quic_reloadable_flag_quic_refactor_stream_creation
- ? ShouldCreateOutgoingDynamicStream2()
- : ShouldCreateOutgoingDynamicStream())) {
+ while (!promised_streams_.empty() && ShouldCreateOutgoingDynamicStream()) {
PromisedStreamInfo& promised_info = promised_streams_.front();
DCHECK_EQ(next_outgoing_stream_id(), promised_info.stream_id);
@@ -203,9 +195,7 @@
QuicSimpleServerStream* promised_stream =
static_cast<QuicSimpleServerStream*>(
- FLAGS_quic_reloadable_flag_quic_refactor_stream_creation
- ? MaybeCreateOutgoingDynamicStream(promised_info.priority)
- : CreateOutgoingDynamicStream(promised_info.priority));
+ CreateOutgoingDynamicStream(promised_info.priority));
DCHECK_NE(promised_stream, nullptr);
DCHECK_EQ(promised_info.stream_id, promised_stream->id());
QUIC_DLOG(INFO) << "created server push stream " << promised_stream->id();
« no previous file with comments | « net/tools/quic/quic_simple_server_session.h ('k') | net/tools/quic/quic_simple_server_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698