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

Unified Diff: jingle/glue/proxy_resolving_client_socket.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 side-by-side diff with in-line comments
Download patch
Index: jingle/glue/proxy_resolving_client_socket.cc
diff --git a/jingle/glue/proxy_resolving_client_socket.cc b/jingle/glue/proxy_resolving_client_socket.cc
index 1a420f564b701587286790a701e4d5422c033d26..278a3b3775b8f8a93f0aed636a714545069048be 100644
--- a/jingle/glue/proxy_resolving_client_socket.cc
+++ b/jingle/glue/proxy_resolving_client_socket.cc
@@ -133,6 +133,13 @@ int ProxyResolvingClientSocket::SetSendBufferSize(int32_t size) {
return net::ERR_SOCKET_NOT_CONNECTED;
}
+int ProxyResolvingClientSocket::SetDoNotFragment(bool do_not_fragment) {
+ if (transport_.get() && transport_->socket())
+ return transport_->socket()->SetSendBufferSize(do_not_fragment);
+ NOTREACHED();
+ return net::ERR_SOCKET_NOT_CONNECTED;
+}
+
int ProxyResolvingClientSocket::Connect(
const net::CompletionCallback& callback) {
DCHECK(user_connect_callback_.is_null());

Powered by Google App Engine
This is Rietveld 408576698