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

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

Issue 2464683002: adds std:: to stl types (#049) (Closed)
Patch Set: Created 4 years, 1 month 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
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/core/quic_session.h" 5 #include "net/quic/core/quic_session.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 draining_streams_.erase(stream_id); 391 draining_streams_.erase(stream_id);
392 392
393 stream->OnClose(); 393 stream->OnClose();
394 // Decrease the number of streams being emulated when a new one is opened. 394 // Decrease the number of streams being emulated when a new one is opened.
395 connection_->SetNumOpenStreams(dynamic_stream_map_.size()); 395 connection_->SetNumOpenStreams(dynamic_stream_map_.size());
396 } 396 }
397 397
398 void QuicSession::UpdateFlowControlOnFinalReceivedByteOffset( 398 void QuicSession::UpdateFlowControlOnFinalReceivedByteOffset(
399 QuicStreamId stream_id, 399 QuicStreamId stream_id,
400 QuicStreamOffset final_byte_offset) { 400 QuicStreamOffset final_byte_offset) {
401 map<QuicStreamId, QuicStreamOffset>::iterator it = 401 std::map<QuicStreamId, QuicStreamOffset>::iterator it =
402 locally_closed_streams_highest_offset_.find(stream_id); 402 locally_closed_streams_highest_offset_.find(stream_id);
403 if (it == locally_closed_streams_highest_offset_.end()) { 403 if (it == locally_closed_streams_highest_offset_.end()) {
404 return; 404 return;
405 } 405 }
406 406
407 DVLOG(1) << ENDPOINT << "Received final byte offset " << final_byte_offset 407 DVLOG(1) << ENDPOINT << "Received final byte offset " << final_byte_offset
408 << " for stream " << stream_id; 408 << " for stream " << stream_id;
409 QuicByteCount offset_diff = final_byte_offset - it->second; 409 QuicByteCount offset_diff = final_byte_offset - it->second;
410 if (flow_controller_.UpdateHighestReceivedOffset( 410 if (flow_controller_.UpdateHighestReceivedOffset(
411 flow_controller_.highest_received_byte_offset() + offset_diff)) { 411 flow_controller_.highest_received_byte_offset() + offset_diff)) {
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 821
822 size_t QuicSession::MaxAvailableStreams() const { 822 size_t QuicSession::MaxAvailableStreams() const {
823 return max_open_incoming_streams_ * kMaxAvailableStreamsMultiplier; 823 return max_open_incoming_streams_ * kMaxAvailableStreamsMultiplier;
824 } 824 }
825 825
826 bool QuicSession::IsIncomingStream(QuicStreamId id) const { 826 bool QuicSession::IsIncomingStream(QuicStreamId id) const {
827 return id % 2 != next_outgoing_stream_id_ % 2; 827 return id % 2 != next_outgoing_stream_id_ % 2;
828 } 828 }
829 829
830 } // namespace net 830 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698