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

Unified Diff: net/udp/udp_client_socket.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/udp/udp_client_socket.h ('k') | net/udp/udp_net_log_parameters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/udp/udp_client_socket.cc
diff --git a/net/udp/udp_client_socket.cc b/net/udp/udp_client_socket.cc
deleted file mode 100644
index 8ea024ddfbbf6e9275465dee61ed1f2d953918b6..0000000000000000000000000000000000000000
--- a/net/udp/udp_client_socket.cc
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) 2011 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/udp/udp_client_socket.h"
-
-#include "net/base/net_errors.h"
-#include "net/base/net_log.h"
-
-namespace net {
-
-UDPClientSocket::UDPClientSocket(DatagramSocket::BindType bind_type,
- const RandIntCallback& rand_int_cb,
- net::NetLog* net_log,
- const net::NetLog::Source& source)
- : socket_(bind_type, rand_int_cb, net_log, source) {
-}
-
-UDPClientSocket::~UDPClientSocket() {
-}
-
-int UDPClientSocket::Connect(const IPEndPoint& address) {
- int rv = socket_.Open(address.GetFamily());
- if (rv != OK)
- return rv;
- return socket_.Connect(address);
-}
-
-int UDPClientSocket::Read(IOBuffer* buf,
- int buf_len,
- const CompletionCallback& callback) {
- return socket_.Read(buf, buf_len, callback);
-}
-
-int UDPClientSocket::Write(IOBuffer* buf,
- int buf_len,
- const CompletionCallback& callback) {
- return socket_.Write(buf, buf_len, callback);
-}
-
-void UDPClientSocket::Close() {
- socket_.Close();
-}
-
-int UDPClientSocket::GetPeerAddress(IPEndPoint* address) const {
- return socket_.GetPeerAddress(address);
-}
-
-int UDPClientSocket::GetLocalAddress(IPEndPoint* address) const {
- return socket_.GetLocalAddress(address);
-}
-
-int UDPClientSocket::SetReceiveBufferSize(int32 size) {
- return socket_.SetReceiveBufferSize(size);
-}
-
-int UDPClientSocket::SetSendBufferSize(int32 size) {
- return socket_.SetSendBufferSize(size);
-}
-
-const BoundNetLog& UDPClientSocket::NetLog() const {
- return socket_.NetLog();
-}
-
-#if defined(OS_WIN)
-void UDPClientSocket::UseNonBlockingIO() {
- socket_.UseNonBlockingIO();
-}
-#endif
-
-} // namespace net
« no previous file with comments | « net/udp/udp_client_socket.h ('k') | net/udp/udp_net_log_parameters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698