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

Unified Diff: net/quic/quic_packet_writer.h

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/quic/quic_packet_writer.h
diff --git a/net/quic/quic_packet_writer.h b/net/quic/quic_packet_writer.h
index 16b7adeadc6019a856434af2544bb0a2de30a020..00c7e4d589f4742f2983787610593ee7b99fa554 100644
--- a/net/quic/quic_packet_writer.h
+++ b/net/quic/quic_packet_writer.h
@@ -24,9 +24,11 @@ class NET_EXPORT_PRIVATE QuicPacketWriter {
// failed, the result's status is WRITE_STATUS_BLOCKED or WRITE_STATUS_ERROR
// and error_code is populated.
virtual WriteResult WritePacket(
- const char* buffer, size_t buf_len,
+ const char* buffer,
+ size_t buf_len,
const IPAddressNumber& self_address,
- const IPEndPoint& peer_address) = 0;
+ const IPEndPoint& peer_address,
+ base::Callback<void(WriteResult wr)> callback) = 0;
Ryan Hamilton 2014/06/18 23:59:51 This is chrome specific, and probably shouldn't go
dmz 2014/06/19 17:46:24 Done.
// Returns true if the writer buffers and subsequently rewrites data
// when an attempt to write results in the underlying socket becoming

Powered by Google App Engine
This is Rietveld 408576698