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

Side by Side Diff: jingle/notifier/base/proxy_resolving_client_socket.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: Reuploading from google.com account 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
« no previous file with comments | « jingle/notifier/base/proxy_resolving_client_socket.h ('k') | net/http/http_basic_stream.h » ('j') | 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) 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/notifier/base/proxy_resolving_client_socket.h" 5 #include "jingle/notifier/base/proxy_resolving_client_socket.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 return false; 335 return false;
336 } 336 }
337 337
338 bool ProxyResolvingClientSocket::UsingTCPFastOpen() const { 338 bool ProxyResolvingClientSocket::UsingTCPFastOpen() const {
339 if (transport_.get() && transport_->socket()) 339 if (transport_.get() && transport_->socket())
340 return transport_->socket()->UsingTCPFastOpen(); 340 return transport_->socket()->UsingTCPFastOpen();
341 NOTREACHED(); 341 NOTREACHED();
342 return false; 342 return false;
343 } 343 }
344 344
345 int64 ProxyResolvingClientSocket::NumBytesRead() const {
346 if (transport_.get() && transport_->socket())
347 return transport_->socket()->NumBytesRead();
348 NOTREACHED();
349 return -1;
350 }
351
352 int ProxyResolvingClientSocket::GetConnectTimeMicros() const {
353 if (transport_.get() && transport_->socket())
354 return transport_->socket()->GetConnectTimeMicros();
355 NOTREACHED();
356 return -1;
357 }
358
345 void ProxyResolvingClientSocket::CloseTransportSocket() { 359 void ProxyResolvingClientSocket::CloseTransportSocket() {
346 if (transport_.get() && transport_->socket()) 360 if (transport_.get() && transport_->socket())
347 transport_->socket()->Disconnect(); 361 transport_->socket()->Disconnect();
348 transport_.reset(); 362 transport_.reset();
349 } 363 }
350 364
351 } // namespace notifier 365 } // namespace notifier
OLDNEW
« no previous file with comments | « jingle/notifier/base/proxy_resolving_client_socket.h ('k') | net/http/http_basic_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698