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

Side by Side Diff: net/tools/quic/quic_spdy_client_stream.cc

Issue 819653006: Attach QuicAckNotifiers to the serialized packet, instead of individual (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@removing_deprecated_flag_83439062
Patch Set: Created 5 years, 11 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/tools/quic/quic_spdy_client_stream.h ('k') | net/tools/quic/test_tools/quic_test_client.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/tools/quic/quic_spdy_client_stream.h" 5 #include "net/tools/quic/quic_spdy_client_stream.h"
6 6
7 #include "net/spdy/spdy_framer.h" 7 #include "net/spdy/spdy_framer.h"
8 #include "net/tools/quic/quic_client_session.h" 8 #include "net/tools/quic/quic_client_session.h"
9 #include "net/tools/quic/spdy_utils.h" 9 #include "net/tools/quic/spdy_utils.h"
10 10
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 size_t delta = read_buf_len - len; 113 size_t delta = read_buf_len - len;
114 if (delta > 0) { 114 if (delta > 0) {
115 data_.append(data + len, delta); 115 data_.append(data + len, delta);
116 } 116 }
117 117
118 return len; 118 return len;
119 } 119 }
120 120
121 void QuicSpdyClientStream::SendBody(const string& data, bool fin) { 121 void QuicSpdyClientStream::SendBody(const string& data, bool fin) {
122 WriteOrBufferData(data, fin, nullptr); 122 SendBody(data, fin, nullptr);
123 }
124
125 void QuicSpdyClientStream::SendBody(
126 const string& data,
127 bool fin,
128 QuicAckNotifier::DelegateInterface* delegate) {
129 WriteOrBufferData(data, fin, delegate);
123 } 130 }
124 131
125 } // namespace tools 132 } // namespace tools
126 } // namespace net 133 } // namespace net
OLDNEW
« no previous file with comments | « net/tools/quic/quic_spdy_client_stream.h ('k') | net/tools/quic/test_tools/quic_test_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698