Index: net/quic/chromium/quic_chromium_packet_writer.h |
diff --git a/net/quic/chromium/quic_chromium_packet_writer.h b/net/quic/chromium/quic_chromium_packet_writer.h |
index 72b25adb9004ae305a5c8a78a616a500f1fa2920..8d40b26f0e1e23f7cfe56f92ac030795101949af 100644 |
--- a/net/quic/chromium/quic_chromium_packet_writer.h |
+++ b/net/quic/chromium/quic_chromium_packet_writer.h |
@@ -32,10 +32,15 @@ class NET_EXPORT_PRIVATE QuicChromiumPacketWriter : public QuicPacketWriter { |
// |error_code| otherwise. |
virtual int HandleWriteError(int error_code, |
scoped_refptr<StringIOBuffer> last_packet) = 0; |
+ |
// Called to propagate the final write error to the delegate. |
virtual void OnWriteError(int error_code) = 0; |
+ |
// Called when the writer is unblocked due to a write completion. |
virtual void OnWriteUnblocked() = 0; |
+ |
+ // Called when the writer's IsWriteBlocked is called. |
+ virtual bool ShouldWriteBlock() = 0; |
}; |
QuicChromiumPacketWriter(); |
@@ -47,7 +52,7 @@ class NET_EXPORT_PRIVATE QuicChromiumPacketWriter : public QuicPacketWriter { |
void set_delegate(Delegate* delegate) { delegate_ = delegate; } |
// Writes |packet| to the socket and returns the error code from the write. |
- int WritePacketToSocket(StringIOBuffer* packet); |
+ WriteResult WritePacketToSocket(scoped_refptr<StringIOBuffer> packet); |
// QuicPacketWriter |
WriteResult WritePacket(const char* buffer, |