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

Unified Diff: net/quic/quic_session.cc

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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_session.cc
diff --git a/net/quic/quic_session.cc b/net/quic/quic_session.cc
index 865af07cd0dbddbb2ecdd1c70d083c6459c381ff..f102845b07bc236adb316fac7f1552ab3ba90986 100644
--- a/net/quic/quic_session.cc
+++ b/net/quic/quic_session.cc
@@ -236,6 +236,10 @@ void QuicSession::OnConnectionClosed(QuicErrorCode error, bool from_peer) {
}
}
+void QuicSession::OnSuccessfulVersionNegotiation(const QuicVersion& version) {
+ headers_stream_->OnSuccessfulVersionNegotiation(version);
+}
+
void QuicSession::OnWindowUpdateFrames(
const vector<QuicWindowUpdateFrame>& frames) {
bool connection_window_updated = false;
@@ -255,13 +259,6 @@ void QuicSession::OnWindowUpdateFrames(
continue;
}
- if (connection_->version() < QUIC_VERSION_21 &&
- (stream_id == kCryptoStreamId || stream_id == kHeadersStreamId)) {
- DLOG(DFATAL) << "WindowUpdate for stream " << stream_id << " in version "
- << QuicVersionToString(connection_->version());
- return;
- }
-
ReliableQuicStream* stream = GetStream(stream_id);
if (stream) {
stream->OnWindowUpdateFrame(frames[i]);
@@ -366,8 +363,10 @@ size_t QuicSession::WriteHeaders(
QuicStreamId id,
const SpdyHeaderBlock& headers,
bool fin,
+ QuicPriority priority,
QuicAckNotifier::DelegateInterface* ack_notifier_delegate) {
- return headers_stream_->WriteHeaders(id, headers, fin, ack_notifier_delegate);
+ return headers_stream_->WriteHeaders(id, headers, fin, priority,
+ ack_notifier_delegate);
}
void QuicSession::SendRstStream(QuicStreamId id,
@@ -498,10 +497,8 @@ void QuicSession::OnNewStreamFlowControlWindow(QuicStreamOffset new_window) {
}
// Inform all existing streams about the new window.
- if (connection_->version() >= QUIC_VERSION_21) {
- GetCryptoStream()->UpdateSendWindowOffset(new_window);
- headers_stream_->UpdateSendWindowOffset(new_window);
- }
+ GetCryptoStream()->UpdateSendWindowOffset(new_window);
+ headers_stream_->UpdateSendWindowOffset(new_window);
for (DataStreamMap::iterator it = stream_map_.begin();
it != stream_map_.end(); ++it) {
it->second->UpdateSendWindowOffset(new_window);
« no previous file with comments | « net/quic/quic_session.h ('k') | net/quic/quic_session_test.cc » ('j') | shell/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698