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

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

Issue 2235973002: Add a SetDoNotFragment() method to DatagramSocket, and call this for (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Blimp 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SOCKS_CLIENT_SOCKET_H_ 5 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Socket implementation. 62 // Socket implementation.
63 int Read(IOBuffer* buf, 63 int Read(IOBuffer* buf,
64 int buf_len, 64 int buf_len,
65 const CompletionCallback& callback) override; 65 const CompletionCallback& callback) override;
66 int Write(IOBuffer* buf, 66 int Write(IOBuffer* buf,
67 int buf_len, 67 int buf_len,
68 const CompletionCallback& callback) override; 68 const CompletionCallback& callback) override;
69 69
70 int SetReceiveBufferSize(int32_t size) override; 70 int SetReceiveBufferSize(int32_t size) override;
71 int SetSendBufferSize(int32_t size) override; 71 int SetSendBufferSize(int32_t size) override;
72 int SetDoNotFragment(bool do_not_fragment) override;
72 73
73 int GetPeerAddress(IPEndPoint* address) const override; 74 int GetPeerAddress(IPEndPoint* address) const override;
74 int GetLocalAddress(IPEndPoint* address) const override; 75 int GetLocalAddress(IPEndPoint* address) const override;
75 76
76 private: 77 private:
77 FRIEND_TEST_ALL_PREFIXES(SOCKSClientSocketTest, CompleteHandshake); 78 FRIEND_TEST_ALL_PREFIXES(SOCKSClientSocketTest, CompleteHandshake);
78 FRIEND_TEST_ALL_PREFIXES(SOCKSClientSocketTest, SOCKS4AFailedDNS); 79 FRIEND_TEST_ALL_PREFIXES(SOCKSClientSocketTest, SOCKS4AFailedDNS);
79 FRIEND_TEST_ALL_PREFIXES(SOCKSClientSocketTest, SOCKS4AIfDomainInIPv6); 80 FRIEND_TEST_ALL_PREFIXES(SOCKSClientSocketTest, SOCKS4AIfDomainInIPv6);
80 81
81 enum State { 82 enum State {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 RequestPriority priority_; 138 RequestPriority priority_;
138 139
139 BoundNetLog net_log_; 140 BoundNetLog net_log_;
140 141
141 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket); 142 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocket);
142 }; 143 };
143 144
144 } // namespace net 145 } // namespace net
145 146
146 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_ 147 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698