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

Unified Diff: net/tools/quic/quic_simple_server_packet_writer.cc

Issue 1662433002: Per-packet options now passed through to QuicPacketWriter, instead of (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@113054959
Patch Set: Fix comments for Patch Set 1 Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_simple_server_packet_writer.h ('k') | net/tools/quic/quic_time_wait_list_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_server_packet_writer.cc
diff --git a/net/tools/quic/quic_simple_server_packet_writer.cc b/net/tools/quic/quic_simple_server_packet_writer.cc
index 7674d06b229f14fc0d50d28d19aba32a0da397c7..cbf9405c2d87714a9342b7fcbe8a3bfe30d69d5b 100644
--- a/net/tools/quic/quic_simple_server_packet_writer.cc
+++ b/net/tools/quic/quic_simple_server_packet_writer.cc
@@ -29,10 +29,12 @@ WriteResult QuicSimpleServerPacketWriter::WritePacketWithCallback(
size_t buf_len,
const IPAddressNumber& self_address,
const IPEndPoint& peer_address,
+ PerPacketOptions* options,
WriteCallback callback) {
DCHECK(callback_.is_null());
callback_ = callback;
- WriteResult result = WritePacket(buffer, buf_len, self_address, peer_address);
+ WriteResult result =
+ WritePacket(buffer, buf_len, self_address, peer_address, options);
if (result.status != WRITE_STATUS_BLOCKED) {
callback_.Reset();
}
@@ -64,7 +66,8 @@ WriteResult QuicSimpleServerPacketWriter::WritePacket(
const char* buffer,
size_t buf_len,
const IPAddressNumber& self_address,
- const IPEndPoint& peer_address) {
+ const IPEndPoint& peer_address,
+ PerPacketOptions* options) {
scoped_refptr<StringIOBuffer> buf(
new StringIOBuffer(std::string(buffer, buf_len)));
DCHECK(!IsWriteBlocked());
« no previous file with comments | « net/tools/quic/quic_simple_server_packet_writer.h ('k') | net/tools/quic/quic_time_wait_list_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698