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

Side by Side Diff: net/quic/quic_session.cc

Issue 848443004: Adds QUIC_VERSION_24 which uses SPDY/4 header compression instead of SPDY/3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0114
Patch Set: Changes to make version 24 to work with chromium unittests 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 unified diff | Download patch
« no previous file with comments | « net/quic/quic_session.h ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/quic_session.h" 5 #include "net/quic/quic_session.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "net/quic/crypto/proof_verifier.h" 8 #include "net/quic/crypto/proof_verifier.h"
9 #include "net/quic/quic_connection.h" 9 #include "net/quic/quic_connection.h"
10 #include "net/quic/quic_flow_controller.h" 10 #include "net/quic/quic_flow_controller.h"
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 it->second->OnConnectionClosed(error, from_peer); 229 it->second->OnConnectionClosed(error, from_peer);
230 // The stream should call CloseStream as part of OnConnectionClosed. 230 // The stream should call CloseStream as part of OnConnectionClosed.
231 if (stream_map_.find(id) != stream_map_.end()) { 231 if (stream_map_.find(id) != stream_map_.end()) {
232 LOG(DFATAL) << ENDPOINT 232 LOG(DFATAL) << ENDPOINT
233 << "Stream failed to close under OnConnectionClosed"; 233 << "Stream failed to close under OnConnectionClosed";
234 CloseStream(id); 234 CloseStream(id);
235 } 235 }
236 } 236 }
237 } 237 }
238 238
239 void QuicSession::OnSuccessfulVersionNegotiation(const QuicVersion& version) {
240 headers_stream_->OnSuccessfulVersionNegotiation(version);
241 }
242
239 void QuicSession::OnWindowUpdateFrames( 243 void QuicSession::OnWindowUpdateFrames(
240 const vector<QuicWindowUpdateFrame>& frames) { 244 const vector<QuicWindowUpdateFrame>& frames) {
241 bool connection_window_updated = false; 245 bool connection_window_updated = false;
242 for (size_t i = 0; i < frames.size(); ++i) { 246 for (size_t i = 0; i < frames.size(); ++i) {
243 // Stream may be closed by the time we receive a WINDOW_UPDATE, so we can't 247 // Stream may be closed by the time we receive a WINDOW_UPDATE, so we can't
244 // assume that it still exists. 248 // assume that it still exists.
245 QuicStreamId stream_id = frames[i].stream_id; 249 QuicStreamId stream_id = frames[i].stream_id;
246 if (stream_id == kConnectionLevelId) { 250 if (stream_id == kConnectionLevelId) {
247 // This is a window update that applies to the connection, rather than an 251 // This is a window update that applies to the connection, rather than an
248 // individual stream. 252 // individual stream.
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 for (DataStreamMap::iterator it = stream_map_.begin(); 741 for (DataStreamMap::iterator it = stream_map_.begin();
738 it != stream_map_.end(); ++it) { 742 it != stream_map_.end(); ++it) {
739 if (it->second->flow_controller()->IsBlocked()) { 743 if (it->second->flow_controller()->IsBlocked()) {
740 return true; 744 return true;
741 } 745 }
742 } 746 }
743 return false; 747 return false;
744 } 748 }
745 749
746 } // namespace net 750 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_session.h ('k') | net/quic/quic_session_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698