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

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

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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_default_packet_writer.h ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_default_packet_writer.cc
diff --git a/net/tools/quic/quic_default_packet_writer.cc b/net/tools/quic/quic_default_packet_writer.cc
deleted file mode 100644
index 84f118aee0098a1cba1b34a5e6b40f546dd724cb..0000000000000000000000000000000000000000
--- a/net/tools/quic/quic_default_packet_writer.cc
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "net/tools/quic/quic_default_packet_writer.h"
-
-#include "net/tools/quic/quic_socket_utils.h"
-
-namespace net {
-namespace tools {
-
-QuicDefaultPacketWriter::QuicDefaultPacketWriter(int fd)
- : fd_(fd),
- write_blocked_(false) {}
-
-QuicDefaultPacketWriter::~QuicDefaultPacketWriter() {}
-
-WriteResult QuicDefaultPacketWriter::WritePacket(
- const char* buffer,
- size_t buf_len,
- const IPAddressNumber& self_address,
- const IPEndPoint& peer_address) {
- DCHECK(!IsWriteBlocked());
- WriteResult result = QuicSocketUtils::WritePacket(
- fd_, buffer, buf_len, self_address, peer_address);
- if (result.status == WRITE_STATUS_BLOCKED) {
- write_blocked_ = true;
- }
- return result;
-}
-
-bool QuicDefaultPacketWriter::IsWriteBlockedDataBuffered() const {
- return false;
-}
-
-bool QuicDefaultPacketWriter::IsWriteBlocked() const {
- return write_blocked_;
-}
-
-void QuicDefaultPacketWriter::SetWritable() {
- write_blocked_ = false;
-}
-
-} // namespace tools
-} // namespace net
« no previous file with comments | « net/tools/quic/quic_default_packet_writer.h ('k') | net/tools/quic/quic_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698