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

Side by Side Diff: jingle/glue/pseudotcp_adapter.cc

Issue 6990036: Deciding best connection to schedule requests on based on cwnd and idle time (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 6 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "jingle/glue/pseudotcp_adapter.h" 5 #include "jingle/glue/pseudotcp_adapter.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/time.h" 8 #include "base/time.h"
9 #include "net/base/address_list.h" 9 #include "net/base/address_list.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 DCHECK(CalledOnValidThread()); 181 DCHECK(CalledOnValidThread());
182 NOTIMPLEMENTED(); 182 NOTIMPLEMENTED();
183 return true; 183 return true;
184 } 184 }
185 185
186 bool PseudoTcpAdapter::UsingTCPFastOpen() const { 186 bool PseudoTcpAdapter::UsingTCPFastOpen() const {
187 DCHECK(CalledOnValidThread()); 187 DCHECK(CalledOnValidThread());
188 return false; 188 return false;
189 } 189 }
190 190
191 int PseudoTcpAdapter::NumBytesRead() const {
192 DCHECK(CalledOnValidThread());
193 NOTIMPLEMENTED();
194 return -1;
195 }
196
197 double PseudoTcpAdapter::GetRTTInMs() const {
198 DCHECK(CalledOnValidThread());
199 NOTIMPLEMENTED();
200 return -1;
201 }
202
191 void PseudoTcpAdapter::OnTcpOpen(PseudoTcp* tcp) { 203 void PseudoTcpAdapter::OnTcpOpen(PseudoTcp* tcp) {
192 DCHECK(CalledOnValidThread()); 204 DCHECK(CalledOnValidThread());
193 DCHECK(connect_callback_); 205 DCHECK(connect_callback_);
194 connect_callback_->Run(net::OK); 206 connect_callback_->Run(net::OK);
195 connect_callback_ = NULL; 207 connect_callback_ = NULL;
196 208
197 OnTcpReadable(tcp); 209 OnTcpReadable(tcp);
198 OnTcpWriteable(tcp); 210 OnTcpWriteable(tcp);
199 } 211 }
200 212
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 &PseudoTcpAdapter::HandleTcpClock); 346 &PseudoTcpAdapter::HandleTcpClock);
335 } 347 }
336 } 348 }
337 349
338 void PseudoTcpAdapter::HandleTcpClock() { 350 void PseudoTcpAdapter::HandleTcpClock() {
339 pseudotcp_.NotifyClock(PseudoTcp::Now()); 351 pseudotcp_.NotifyClock(PseudoTcp::Now());
340 AdjustClock(); 352 AdjustClock();
341 } 353 }
342 354
343 } // namespace jingle_glue 355 } // namespace jingle_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698