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

Side by Side Diff: net/udp/udp_client_socket.cc

Issue 2250473007: Move UseNonBlockingIO from a windows-only method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: socket_host_udp_unittest.cc Created 4 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 unified diff | Download patch
« no previous file with comments | « net/udp/udp_client_socket.h ('k') | net/udp/udp_server_socket.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/udp/udp_client_socket.h" 5 #include "net/udp/udp_client_socket.h"
6 6
7 #include "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 #include "net/log/net_log.h" 8 #include "net/log/net_log.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 107
108 int UDPClientSocket::SetSendBufferSize(int32_t size) { 108 int UDPClientSocket::SetSendBufferSize(int32_t size) {
109 return socket_.SetSendBufferSize(size); 109 return socket_.SetSendBufferSize(size);
110 } 110 }
111 111
112 const BoundNetLog& UDPClientSocket::NetLog() const { 112 const BoundNetLog& UDPClientSocket::NetLog() const {
113 return socket_.NetLog(); 113 return socket_.NetLog();
114 } 114 }
115 115
116 void UDPClientSocket::UseNonBlockingIO() {
116 #if defined(OS_WIN) 117 #if defined(OS_WIN)
117 void UDPClientSocket::UseNonBlockingIO() {
118 socket_.UseNonBlockingIO(); 118 socket_.UseNonBlockingIO();
119 #endif
119 } 120 }
120 #endif
121 121
122 } // namespace net 122 } // namespace net
OLDNEW
« no previous file with comments | « net/udp/udp_client_socket.h ('k') | net/udp/udp_server_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698