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

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

Issue 989523005: Avoid duplicates in SPDY's write blocked list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use hash_map. Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | net/quic/quic_write_blocked_list.h » ('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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 private: 95 private:
96 QuicSession* session_; 96 QuicSession* session_;
97 }; 97 };
98 98
99 QuicSession::QuicSession(QuicConnection* connection, const QuicConfig& config) 99 QuicSession::QuicSession(QuicConnection* connection, const QuicConfig& config)
100 : connection_(connection), 100 : connection_(connection),
101 visitor_shim_(new VisitorShim(this)), 101 visitor_shim_(new VisitorShim(this)),
102 config_(config), 102 config_(config),
103 max_open_streams_(config_.MaxStreamsPerConnection()), 103 max_open_streams_(config_.MaxStreamsPerConnection()),
104 next_stream_id_(is_server() ? 2 : 5), 104 next_stream_id_(is_server() ? 2 : 5),
105 write_blocked_streams_(true),
Ryan Hamilton 2015/03/09 17:46:04 Should this be true or false? seems like false wou
105 largest_peer_created_stream_id_(0), 106 largest_peer_created_stream_id_(0),
106 error_(QUIC_NO_ERROR), 107 error_(QUIC_NO_ERROR),
107 flow_controller_(new QuicFlowController( 108 flow_controller_(new QuicFlowController(
108 connection_.get(), 109 connection_.get(),
109 0, 110 0,
110 is_server(), 111 is_server(),
111 kMinimumFlowControlSendWindow, 112 kMinimumFlowControlSendWindow,
112 config_.GetInitialSessionFlowControlWindowToSend(), 113 config_.GetInitialSessionFlowControlWindowToSend(),
113 config_.GetInitialSessionFlowControlWindowToSend())), 114 config_.GetInitialSessionFlowControlWindowToSend())),
114 goaway_received_(false), 115 goaway_received_(false),
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 for (DataStreamMap::iterator it = stream_map_.begin(); 743 for (DataStreamMap::iterator it = stream_map_.begin();
743 it != stream_map_.end(); ++it) { 744 it != stream_map_.end(); ++it) {
744 if (it->second->flow_controller()->IsBlocked()) { 745 if (it->second->flow_controller()->IsBlocked()) {
745 return true; 746 return true;
746 } 747 }
747 } 748 }
748 return false; 749 return false;
749 } 750 }
750 751
751 } // namespace net 752 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_write_blocked_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698