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

Side by Side Diff: net/socket/fuzzed_datagram_client_socket.h

Issue 2253753002: Always use NonBlocking IO for UDP sockets on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 3 years, 8 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/socket/datagram_socket.h ('k') | net/socket/fuzzed_datagram_client_socket.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef NET_SOCKET_FUZZED_DATAGRAM_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_FUZZED_DATAGRAM_CLIENT_SOCKET_H_
6 #define NET_SOCKET_FUZZED_DATAGRAM_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_FUZZED_DATAGRAM_CLIENT_SOCKET_H_
7 7
8 #include "net/socket/datagram_client_socket.h" 8 #include "net/socket/datagram_client_socket.h"
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 25 matching lines...) Expand all
36 int Connect(const IPEndPoint& address) override; 36 int Connect(const IPEndPoint& address) override;
37 int ConnectUsingNetwork(NetworkChangeNotifier::NetworkHandle network, 37 int ConnectUsingNetwork(NetworkChangeNotifier::NetworkHandle network,
38 const IPEndPoint& address) override; 38 const IPEndPoint& address) override;
39 int ConnectUsingDefaultNetwork(const IPEndPoint& address) override; 39 int ConnectUsingDefaultNetwork(const IPEndPoint& address) override;
40 NetworkChangeNotifier::NetworkHandle GetBoundNetwork() const override; 40 NetworkChangeNotifier::NetworkHandle GetBoundNetwork() const override;
41 41
42 // DatagramSocket implementation: 42 // DatagramSocket implementation:
43 void Close() override; 43 void Close() override;
44 int GetPeerAddress(IPEndPoint* address) const override; 44 int GetPeerAddress(IPEndPoint* address) const override;
45 int GetLocalAddress(IPEndPoint* address) const override; 45 int GetLocalAddress(IPEndPoint* address) const override;
46 void UseNonBlockingIO() override;
47 const NetLogWithSource& NetLog() const override; 46 const NetLogWithSource& NetLog() const override;
48 47
49 // Socket implementation: 48 // Socket implementation:
50 int Read(IOBuffer* buf, 49 int Read(IOBuffer* buf,
51 int buf_len, 50 int buf_len,
52 const CompletionCallback& callback) override; 51 const CompletionCallback& callback) override;
53 int Write(IOBuffer* buf, 52 int Write(IOBuffer* buf,
54 int buf_len, 53 int buf_len,
55 const CompletionCallback& callback) override; 54 const CompletionCallback& callback) override;
56 int SetReceiveBufferSize(int32_t size) override; 55 int SetReceiveBufferSize(int32_t size) override;
(...skipping 15 matching lines...) Expand all
72 IPEndPoint remote_address_; 71 IPEndPoint remote_address_;
73 72
74 base::WeakPtrFactory<FuzzedDatagramClientSocket> weak_factory_; 73 base::WeakPtrFactory<FuzzedDatagramClientSocket> weak_factory_;
75 74
76 DISALLOW_COPY_AND_ASSIGN(FuzzedDatagramClientSocket); 75 DISALLOW_COPY_AND_ASSIGN(FuzzedDatagramClientSocket);
77 }; 76 };
78 77
79 } // namespace net 78 } // namespace net
80 79
81 #endif // NET_SOCKET_FUZZED_DATAGRAM_CLIENT_SOCKET_H_ 80 #endif // NET_SOCKET_FUZZED_DATAGRAM_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « net/socket/datagram_socket.h ('k') | net/socket/fuzzed_datagram_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698