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

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

Issue 340433002: Port QuicServer to Chrome network stack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments and fix blocked writers using callbacks 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
Index: net/tools/quic/quic_packet_writer_wrapper.cc
diff --git a/net/tools/quic/quic_packet_writer_wrapper.cc b/net/tools/quic/quic_packet_writer_wrapper.cc
index 3d1b03d48e9cd8db0bbe4786f3c16680bce24fa8..a170f94ffcd29ea5335c10150af4f0992e0eb7f5 100644
--- a/net/tools/quic/quic_packet_writer_wrapper.cc
+++ b/net/tools/quic/quic_packet_writer_wrapper.cc
@@ -20,8 +20,13 @@ WriteResult QuicPacketWriterWrapper::WritePacket(
const char* buffer,
size_t buf_len,
const net::IPAddressNumber& self_address,
- const net::IPEndPoint& peer_address) {
- return writer_->WritePacket(buffer, buf_len, self_address, peer_address);
+ const net::IPEndPoint& peer_address,
+ base::Callback<void(WriteResult wr)> callback) {
+ return writer_->WritePacket(buffer,
+ buf_len,
+ self_address,
+ peer_address,
+ callback);
}
bool QuicPacketWriterWrapper::IsWriteBlockedDataBuffered() const {

Powered by Google App Engine
This is Rietveld 408576698