| OLD | NEW | 
|---|
| 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 // This StreamSocket implementation wraps a ClientSocketHandle that is created | 5 // This StreamSocket implementation wraps a ClientSocketHandle that is created | 
| 6 // from the client socket pool after resolving proxies. | 6 // from the client socket pool after resolving proxies. | 
| 7 | 7 | 
| 8 #ifndef JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 8 #ifndef JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 
| 9 #define JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 9 #define JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 
| 10 #pragma once | 10 #pragma once | 
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 49   virtual void Disconnect() OVERRIDE; | 49   virtual void Disconnect() OVERRIDE; | 
| 50   virtual bool IsConnected() const OVERRIDE; | 50   virtual bool IsConnected() const OVERRIDE; | 
| 51   virtual bool IsConnectedAndIdle() const OVERRIDE; | 51   virtual bool IsConnectedAndIdle() const OVERRIDE; | 
| 52   virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; | 52   virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; | 
| 53   virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; | 53   virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; | 
| 54   virtual const net::BoundNetLog& NetLog() const OVERRIDE; | 54   virtual const net::BoundNetLog& NetLog() const OVERRIDE; | 
| 55   virtual void SetSubresourceSpeculation() OVERRIDE; | 55   virtual void SetSubresourceSpeculation() OVERRIDE; | 
| 56   virtual void SetOmniboxSpeculation() OVERRIDE; | 56   virtual void SetOmniboxSpeculation() OVERRIDE; | 
| 57   virtual bool WasEverUsed() const OVERRIDE; | 57   virtual bool WasEverUsed() const OVERRIDE; | 
| 58   virtual bool UsingTCPFastOpen() const OVERRIDE; | 58   virtual bool UsingTCPFastOpen() const OVERRIDE; | 
|  | 59   virtual int64 NumBytesRead() const OVERRIDE; | 
|  | 60   virtual int GetConnectTimeMicros() const OVERRIDE; | 
| 59 | 61 | 
| 60  private: | 62  private: | 
| 61   // Proxy resolution and connection functions. | 63   // Proxy resolution and connection functions. | 
| 62   void ProcessProxyResolveDone(int status); | 64   void ProcessProxyResolveDone(int status); | 
| 63   void ProcessConnectDone(int status); | 65   void ProcessConnectDone(int status); | 
| 64 | 66 | 
| 65   void CloseTransportSocket(); | 67   void CloseTransportSocket(); | 
| 66   void RunUserConnectCallback(int status); | 68   void RunUserConnectCallback(int status); | 
| 67   int ReconsiderProxyAfterError(int error); | 69   int ReconsiderProxyAfterError(int error); | 
| 68 | 70 | 
| (...skipping 16 matching lines...) Expand all  Loading... | 
| 85   ScopedRunnableMethodFactory<ProxyResolvingClientSocket> | 87   ScopedRunnableMethodFactory<ProxyResolvingClientSocket> | 
| 86       scoped_runnable_method_factory_; | 88       scoped_runnable_method_factory_; | 
| 87 | 89 | 
| 88   // The callback passed to Connect(). | 90   // The callback passed to Connect(). | 
| 89   net::CompletionCallback* user_connect_callback_; | 91   net::CompletionCallback* user_connect_callback_; | 
| 90 }; | 92 }; | 
| 91 | 93 | 
| 92 }  // namespace notifier | 94 }  // namespace notifier | 
| 93 | 95 | 
| 94 #endif  // JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 96 #endif  // JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 
| OLD | NEW | 
|---|