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

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

Issue 335533002: API changes to Write path Session on down for FEC protection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« 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_flags.h" 10 #include "net/quic/quic_flags.h"
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 358
359 bool QuicSession::HasOpenDataStreams() const { 359 bool QuicSession::HasOpenDataStreams() const {
360 return GetNumOpenStreams() > 0; 360 return GetNumOpenStreams() > 0;
361 } 361 }
362 362
363 QuicConsumedData QuicSession::WritevData( 363 QuicConsumedData QuicSession::WritevData(
364 QuicStreamId id, 364 QuicStreamId id,
365 const IOVector& data, 365 const IOVector& data,
366 QuicStreamOffset offset, 366 QuicStreamOffset offset,
367 bool fin, 367 bool fin,
368 FecProtection fec_protection,
368 QuicAckNotifier::DelegateInterface* ack_notifier_delegate) { 369 QuicAckNotifier::DelegateInterface* ack_notifier_delegate) {
369 return connection_->SendStreamData(id, data, offset, fin, 370 return connection_->SendStreamData(id, data, offset, fin, fec_protection,
370 ack_notifier_delegate); 371 ack_notifier_delegate);
371 } 372 }
372 373
373 size_t QuicSession::WriteHeaders( 374 size_t QuicSession::WriteHeaders(
374 QuicStreamId id, 375 QuicStreamId id,
375 const SpdyHeaderBlock& headers, 376 const SpdyHeaderBlock& headers,
376 bool fin, 377 bool fin,
377 QuicAckNotifier::DelegateInterface* ack_notifier_delegate) { 378 QuicAckNotifier::DelegateInterface* ack_notifier_delegate) {
378 return headers_stream_->WriteHeaders(id, headers, fin, ack_notifier_delegate); 379 return headers_stream_->WriteHeaders(id, headers, fin, ack_notifier_delegate);
379 } 380 }
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 // with a different version. 709 // with a different version.
709 for (DataStreamMap::iterator it = stream_map_.begin(); 710 for (DataStreamMap::iterator it = stream_map_.begin();
710 it != stream_map_.end(); ++it) { 711 it != stream_map_.end(); ++it) {
711 if (version < QUIC_VERSION_17) { 712 if (version < QUIC_VERSION_17) {
712 it->second->flow_controller()->Disable(); 713 it->second->flow_controller()->Disable();
713 } 714 }
714 } 715 }
715 } 716 }
716 717
717 } // namespace net 718 } // 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