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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 const net::HostPortPair& dest_host_port_pair); | 45 const net::HostPortPair& dest_host_port_pair); |
46 virtual ~ProxyResolvingClientSocket(); | 46 virtual ~ProxyResolvingClientSocket(); |
47 | 47 |
48 // net::StreamSocket implementation. | 48 // net::StreamSocket implementation. |
49 virtual int Read(net::IOBuffer* buf, int buf_len, | 49 virtual int Read(net::IOBuffer* buf, int buf_len, |
50 net::OldCompletionCallback* callback) OVERRIDE; | 50 net::OldCompletionCallback* callback) OVERRIDE; |
51 virtual int Read(net::IOBuffer* buf, int buf_len, | 51 virtual int Read(net::IOBuffer* buf, int buf_len, |
52 const net::CompletionCallback& callback) OVERRIDE; | 52 const net::CompletionCallback& callback) OVERRIDE; |
53 virtual int Write(net::IOBuffer* buf, int buf_len, | 53 virtual int Write(net::IOBuffer* buf, int buf_len, |
54 net::OldCompletionCallback* callback) OVERRIDE; | 54 net::OldCompletionCallback* callback) OVERRIDE; |
| 55 virtual int Write(net::IOBuffer* buf, int buf_len, |
| 56 const net::CompletionCallback& callback) OVERRIDE; |
55 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; | 57 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; |
56 virtual bool SetSendBufferSize(int32 size) OVERRIDE; | 58 virtual bool SetSendBufferSize(int32 size) OVERRIDE; |
57 virtual int Connect(net::OldCompletionCallback* callback) OVERRIDE; | 59 virtual int Connect(net::OldCompletionCallback* callback) OVERRIDE; |
58 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE; | 60 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE; |
59 virtual void Disconnect() OVERRIDE; | 61 virtual void Disconnect() OVERRIDE; |
60 virtual bool IsConnected() const OVERRIDE; | 62 virtual bool IsConnected() const OVERRIDE; |
61 virtual bool IsConnectedAndIdle() const OVERRIDE; | 63 virtual bool IsConnectedAndIdle() const OVERRIDE; |
62 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; | 64 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; |
63 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; | 65 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; |
64 virtual const net::BoundNetLog& NetLog() const OVERRIDE; | 66 virtual const net::BoundNetLog& NetLog() const OVERRIDE; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; | 100 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; |
99 | 101 |
100 // The callback passed to Connect(). | 102 // The callback passed to Connect(). |
101 net::OldCompletionCallback* old_user_connect_callback_; | 103 net::OldCompletionCallback* old_user_connect_callback_; |
102 net::CompletionCallback user_connect_callback_; | 104 net::CompletionCallback user_connect_callback_; |
103 }; | 105 }; |
104 | 106 |
105 } // namespace notifier | 107 } // namespace notifier |
106 | 108 |
107 #endif // JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 109 #endif // JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
OLD | NEW |