| OLD | NEW |
| 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 // 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_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 8 #ifndef JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
| 9 #define JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 9 #define JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 // net::StreamSocket implementation. | 55 // net::StreamSocket implementation. |
| 56 int Read(net::IOBuffer* buf, | 56 int Read(net::IOBuffer* buf, |
| 57 int buf_len, | 57 int buf_len, |
| 58 const net::CompletionCallback& callback) override; | 58 const net::CompletionCallback& callback) override; |
| 59 int Write(net::IOBuffer* buf, | 59 int Write(net::IOBuffer* buf, |
| 60 int buf_len, | 60 int buf_len, |
| 61 const net::CompletionCallback& callback) override; | 61 const net::CompletionCallback& callback) override; |
| 62 int SetReceiveBufferSize(int32_t size) override; | 62 int SetReceiveBufferSize(int32_t size) override; |
| 63 int SetSendBufferSize(int32_t size) override; | 63 int SetSendBufferSize(int32_t size) override; |
| 64 int SetDoNotFragment(bool do_not_fragment) override; |
| 64 int Connect(const net::CompletionCallback& callback) override; | 65 int Connect(const net::CompletionCallback& callback) override; |
| 65 void Disconnect() override; | 66 void Disconnect() override; |
| 66 bool IsConnected() const override; | 67 bool IsConnected() const override; |
| 67 bool IsConnectedAndIdle() const override; | 68 bool IsConnectedAndIdle() const override; |
| 68 int GetPeerAddress(net::IPEndPoint* address) const override; | 69 int GetPeerAddress(net::IPEndPoint* address) const override; |
| 69 int GetLocalAddress(net::IPEndPoint* address) const override; | 70 int GetLocalAddress(net::IPEndPoint* address) const override; |
| 70 const net::BoundNetLog& NetLog() const override; | 71 const net::BoundNetLog& NetLog() const override; |
| 71 void SetSubresourceSpeculation() override; | 72 void SetSubresourceSpeculation() override; |
| 72 void SetOmniboxSpeculation() override; | 73 void SetOmniboxSpeculation() override; |
| 73 bool WasEverUsed() const override; | 74 bool WasEverUsed() const override; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 net::CompletionCallback user_connect_callback_; | 112 net::CompletionCallback user_connect_callback_; |
| 112 | 113 |
| 113 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; | 114 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; |
| 114 | 115 |
| 115 DISALLOW_COPY_AND_ASSIGN(ProxyResolvingClientSocket); | 116 DISALLOW_COPY_AND_ASSIGN(ProxyResolvingClientSocket); |
| 116 }; | 117 }; |
| 117 | 118 |
| 118 } // namespace jingle_glue | 119 } // namespace jingle_glue |
| 119 | 120 |
| 120 #endif // JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 121 #endif // JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
| OLD | NEW |