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

Side by Side Diff: net/socket/unix_domain_client_socket_posix.cc

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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/socket/unix_domain_client_socket_posix.h" 5 #include "net/socket/unix_domain_client_socket_posix.h"
6 6
7 #include <sys/socket.h> 7 #include <sys/socket.h>
8 #include <sys/un.h> 8 #include <sys/un.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 int UnixDomainClientSocket::SetReceiveBufferSize(int32_t size) { 169 int UnixDomainClientSocket::SetReceiveBufferSize(int32_t size) {
170 NOTIMPLEMENTED(); 170 NOTIMPLEMENTED();
171 return ERR_NOT_IMPLEMENTED; 171 return ERR_NOT_IMPLEMENTED;
172 } 172 }
173 173
174 int UnixDomainClientSocket::SetSendBufferSize(int32_t size) { 174 int UnixDomainClientSocket::SetSendBufferSize(int32_t size) {
175 NOTIMPLEMENTED(); 175 NOTIMPLEMENTED();
176 return ERR_NOT_IMPLEMENTED; 176 return ERR_NOT_IMPLEMENTED;
177 } 177 }
178 178
179 int UnixDomainClientSocket::SetDoNotFragment(bool do_not_fragment) {
180 NOTIMPLEMENTED();
181 return ERR_NOT_IMPLEMENTED;
182 }
183
179 SocketDescriptor UnixDomainClientSocket::ReleaseConnectedSocket() { 184 SocketDescriptor UnixDomainClientSocket::ReleaseConnectedSocket() {
180 DCHECK(socket_); 185 DCHECK(socket_);
181 DCHECK(socket_->IsConnected()); 186 DCHECK(socket_->IsConnected());
182 187
183 SocketDescriptor socket_fd = socket_->ReleaseConnectedSocket(); 188 SocketDescriptor socket_fd = socket_->ReleaseConnectedSocket();
184 socket_.reset(); 189 socket_.reset();
185 return socket_fd; 190 return socket_fd;
186 } 191 }
187 192
188 } // namespace net 193 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698