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

Side by Side Diff: remoting/protocol/fake_session.cc

Issue 12886034: Remove experimental code to pick the "warmest" socket (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync, fix conflict Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « remoting/protocol/fake_session.h ('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/fake_session.h" 5 #include "remoting/protocol/fake_session.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "net/base/address_list.h" 9 #include "net/base/address_list.h"
10 #include "net/base/io_buffer.h" 10 #include "net/base/io_buffer.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 bool FakeSocket::WasEverUsed() const { 189 bool FakeSocket::WasEverUsed() const {
190 NOTIMPLEMENTED(); 190 NOTIMPLEMENTED();
191 return true; 191 return true;
192 } 192 }
193 193
194 bool FakeSocket::UsingTCPFastOpen() const { 194 bool FakeSocket::UsingTCPFastOpen() const {
195 NOTIMPLEMENTED(); 195 NOTIMPLEMENTED();
196 return true; 196 return true;
197 } 197 }
198 198
199 int64 FakeSocket::NumBytesRead() const {
200 NOTIMPLEMENTED();
201 return 0;
202 }
203
204 base::TimeDelta FakeSocket::GetConnectTimeMicros() const {
205 NOTIMPLEMENTED();
206 return base::TimeDelta();
207 }
208
209 bool FakeSocket::WasNpnNegotiated() const { 199 bool FakeSocket::WasNpnNegotiated() const {
210 return false; 200 return false;
211 } 201 }
212 202
213 net::NextProto FakeSocket::GetNegotiatedProtocol() const { 203 net::NextProto FakeSocket::GetNegotiatedProtocol() const {
214 NOTIMPLEMENTED(); 204 NOTIMPLEMENTED();
215 return net::kProtoUnknown; 205 return net::kProtoUnknown;
216 } 206 }
217 207
218 bool FakeSocket::GetSSLInfo(net::SSLInfo* ssl_info) { 208 bool FakeSocket::GetSSLInfo(net::SSLInfo* ssl_info) {
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 callback.Run(scoped_ptr<net::Socket>(datagram_channels_[name])); 380 callback.Run(scoped_ptr<net::Socket>(datagram_channels_[name]));
391 } 381 }
392 382
393 void FakeSession::CancelChannelCreation(const std::string& name) { 383 void FakeSession::CancelChannelCreation(const std::string& name) {
394 stream_channels_.erase(name); 384 stream_channels_.erase(name);
395 datagram_channels_.erase(name); 385 datagram_channels_.erase(name);
396 } 386 }
397 387
398 } // namespace protocol 388 } // namespace protocol
399 } // namespace remoting 389 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/fake_session.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698