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

Unified Diff: net/quic/quic_connection.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_connection.h ('k') | net/quic/quic_connection_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_connection.cc
diff --git a/net/quic/quic_connection.cc b/net/quic/quic_connection.cc
index 76fe0a7f52a66d70dc23e983dce753bfa7b92fb2..7be5fc781cbe521c1d5e81265eff4dce01f63dd9 100644
--- a/net/quic/quic_connection.cc
+++ b/net/quic/quic_connection.cc
@@ -989,6 +989,7 @@ QuicConsumedData QuicConnection::SendStreamData(
const IOVector& data,
QuicStreamOffset offset,
bool fin,
+ FecProtection fec_protection,
QuicAckNotifier::DelegateInterface* delegate) {
if (!fin && data.Empty()) {
LOG(DFATAL) << "Attempt to send empty stream frame";
@@ -1016,7 +1017,8 @@ QuicConsumedData QuicConnection::SendStreamData(
// processing left that may cause received_info_ to change.
ScopedPacketBundler ack_bundler(this, BUNDLE_PENDING_ACK);
QuicConsumedData consumed_data =
- packet_generator_.ConsumeData(id, data, offset, fin, notifier);
+ packet_generator_.ConsumeData(id, data, offset, fin, fec_protection,
+ notifier);
if (notifier &&
(consumed_data.bytes_consumed == 0 && !consumed_data.fin_consumed)) {
@@ -1570,7 +1572,8 @@ void QuicConnection::SendPing() {
char c_data[] = "C";
data.Append(c_data, 1);
QuicConsumedData consumed_data =
- packet_generator_.ConsumeData(kCryptoStreamId, data, 0, false, NULL);
+ packet_generator_.ConsumeData(kCryptoStreamId, data, 0, false,
+ MAY_FEC_PROTECT, NULL);
if (consumed_data.bytes_consumed == 0) {
DLOG(ERROR) << "Unable to send ping!?";
}
« no previous file with comments | « net/quic/quic_connection.h ('k') | net/quic/quic_connection_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698