| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |