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

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

Issue 468373002: Patch set 2 of Daniel Ziegler's CL Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Suggested changes. Created 6 years, 4 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_per_connection_packet_writer.h ('k') | net/tools/quic/quic_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_per_connection_packet_writer.cc
diff --git a/net/tools/quic/quic_per_connection_packet_writer.cc b/net/tools/quic/quic_per_connection_packet_writer.cc
new file mode 100644
index 0000000000000000000000000000000000000000..af0ead7a8545bc14e282403703886814d5a648c0
--- /dev/null
+++ b/net/tools/quic/quic_per_connection_packet_writer.cc
@@ -0,0 +1,42 @@
+#include "net/tools/quic/quic_per_connection_packet_writer.h"
+
+namespace net {
+
+namespace tools {
+
+QuicPerConnectionPacketWriter::QuicPerConnectionPacketWriter(
+ QuicPacketWriter* shared_writer,
+ QuicConnection* connection)
+ : shared_writer_(shared_writer),
+ connection_(connection) {
+}
+
+QuicPerConnectionPacketWriter::~QuicPerConnectionPacketWriter() {
+}
+
+WriteResult QuicPerConnectionPacketWriter::WritePacket(
+ const char* buffer,
+ size_t buf_len,
+ const IPAddressNumber& self_address,
+ const IPEndPoint& peer_address) {
+ return shared_writer_->WritePacket(buffer,
+ buf_len,
+ self_address,
+ peer_address);
+}
+
+bool QuicPerConnectionPacketWriter::IsWriteBlockedDataBuffered() const {
+ return shared_writer_->IsWriteBlockedDataBuffered();
+}
+
+bool QuicPerConnectionPacketWriter::IsWriteBlocked() const {
+ return shared_writer_->IsWriteBlocked();
+}
+
+void QuicPerConnectionPacketWriter::SetWritable() {
+ shared_writer_->SetWritable();
+}
+
+} // namespace tools
+
+} // namespace net
« no previous file with comments | « net/tools/quic/quic_per_connection_packet_writer.h ('k') | net/tools/quic/quic_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698