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

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

Issue 2963763003: In QUIC, send data is copied to streams rather than frames. Protected by FLAGS_quic_reloadable_flag… (Closed)
Patch Set: Rebase Created 3 years, 5 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/core/quic_connection.h ('k') | net/quic/core/quic_connection_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/core/quic_connection.h" 5 #include "net/quic/core/quic_connection.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 #include <sys/types.h> 8 #include <sys/types.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 2423 matching lines...) Expand 10 before | Expand all | Expand 10 after
2434 !visitor_->WillingAndAbleToWrite()) { 2434 !visitor_->WillingAndAbleToWrite()) {
2435 sent_packet_manager_.OnApplicationLimited(); 2435 sent_packet_manager_.OnApplicationLimited();
2436 } 2436 }
2437 } 2437 }
2438 2438
2439 void QuicConnection::SetStreamNotifier( 2439 void QuicConnection::SetStreamNotifier(
2440 StreamNotifierInterface* stream_notifier) { 2440 StreamNotifierInterface* stream_notifier) {
2441 sent_packet_manager_.SetStreamNotifier(stream_notifier); 2441 sent_packet_manager_.SetStreamNotifier(stream_notifier);
2442 } 2442 }
2443 2443
2444 void QuicConnection::SetDelegateSavesData(bool delegate_saves_data) {
2445 packet_generator_.SetDelegateSavesData(delegate_saves_data);
2446 }
2447
2448 void QuicConnection::SaveStreamData(QuicStreamId id,
2449 QuicIOVector iov,
2450 size_t iov_offset,
2451 QuicStreamOffset offset,
2452 QuicByteCount data_length) {
2453 visitor_->SaveStreamData(id, iov, iov_offset, offset, data_length);
2454 }
2455
2456 bool QuicConnection::WriteStreamData(QuicStreamId id,
2457 QuicStreamOffset offset,
2458 QuicByteCount data_length,
2459 QuicDataWriter* writer) {
2460 return visitor_->WriteStreamData(id, offset, data_length, writer);
2461 }
2462
2444 } // namespace net 2463 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_connection.h ('k') | net/quic/core/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698