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

Side by Side Diff: remoting/protocol/ssl_hmac_channel_authenticator.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
« net/udp/udp_socket_posix.cc ('K') | « net/udp/udp_socket_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "remoting/protocol/ssl_hmac_channel_authenticator.h" 5 #include "remoting/protocol/ssl_hmac_channel_authenticator.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 int SetReceiveBufferSize(int32_t size) override { 124 int SetReceiveBufferSize(int32_t size) override {
125 NOTREACHED(); 125 NOTREACHED();
126 return net::ERR_FAILED; 126 return net::ERR_FAILED;
127 } 127 }
128 128
129 int SetSendBufferSize(int32_t size) override { 129 int SetSendBufferSize(int32_t size) override {
130 NOTREACHED(); 130 NOTREACHED();
131 return net::ERR_FAILED; 131 return net::ERR_FAILED;
132 } 132 }
133 133
134 int SetDoNotFragment(bool do_not_fragment) override {
135 NOTREACHED();
136 return net::ERR_FAILED;
137 }
138
134 int Connect(const net::CompletionCallback& callback) override { 139 int Connect(const net::CompletionCallback& callback) override {
135 NOTREACHED(); 140 NOTREACHED();
136 return net::ERR_FAILED; 141 return net::ERR_FAILED;
137 } 142 }
138 void Disconnect() override { socket_.reset(); } 143 void Disconnect() override { socket_.reset(); }
139 bool IsConnected() const override { return true; } 144 bool IsConnected() const override { return true; }
140 bool IsConnectedAndIdle() const override { return true; } 145 bool IsConnectedAndIdle() const override { return true; }
141 int GetPeerAddress(net::IPEndPoint* address) const override { 146 int GetPeerAddress(net::IPEndPoint* address) const override {
142 // SSL sockets call this function so it must return some result. 147 // SSL sockets call this function so it must return some result.
143 *address = net::IPEndPoint(net::IPAddress::IPv4AllZeros(), 0); 148 *address = net::IPEndPoint(net::IPAddress::IPv4AllZeros(), 0);
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 std::move(socket_), std::move(server_context_)))); 485 std::move(socket_), std::move(server_context_))));
481 } 486 }
482 } 487 }
483 488
484 void SslHmacChannelAuthenticator::NotifyError(int error) { 489 void SslHmacChannelAuthenticator::NotifyError(int error) {
485 base::ResetAndReturn(&done_callback_).Run(error, nullptr); 490 base::ResetAndReturn(&done_callback_).Run(error, nullptr);
486 } 491 }
487 492
488 } // namespace protocol 493 } // namespace protocol
489 } // namespace remoting 494 } // namespace remoting
OLDNEW
« net/udp/udp_socket_posix.cc ('K') | « net/udp/udp_socket_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698