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 #ifndef REMOTING_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_ | 5 #ifndef REMOTING_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_ |
6 #define REMOTING_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_ | 6 #define REMOTING_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "net/base/completion_callback.h" | 9 #include "net/base/completion_callback.h" |
10 #include "net/base/io_buffer.h" | 10 #include "net/base/io_buffer.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 class TransportSocket : public net::StreamSocket, public sigslot::has_slots<> { | 32 class TransportSocket : public net::StreamSocket, public sigslot::has_slots<> { |
33 public: | 33 public: |
34 TransportSocket(talk_base::AsyncSocket* socket, | 34 TransportSocket(talk_base::AsyncSocket* socket, |
35 SSLSocketAdapter *ssl_adapter); | 35 SSLSocketAdapter *ssl_adapter); |
36 virtual ~TransportSocket(); | 36 virtual ~TransportSocket(); |
37 | 37 |
38 void set_addr(const talk_base::SocketAddress& addr) { | 38 void set_addr(const talk_base::SocketAddress& addr) { |
39 addr_ = addr; | 39 addr_ = addr; |
40 } | 40 } |
41 | 41 |
42 // net::StreamSocket implementation | 42 // net::StreamSocket implementation. |
43 | |
44 virtual int Connect(net::OldCompletionCallback* callback) OVERRIDE; | 43 virtual int Connect(net::OldCompletionCallback* callback) OVERRIDE; |
| 44 virtual int Connect(const net::CompletionCallback& callback) OVERRIDE; |
45 virtual void Disconnect() OVERRIDE; | 45 virtual void Disconnect() OVERRIDE; |
46 virtual bool IsConnected() const OVERRIDE; | 46 virtual bool IsConnected() const OVERRIDE; |
47 virtual bool IsConnectedAndIdle() const OVERRIDE; | 47 virtual bool IsConnectedAndIdle() const OVERRIDE; |
48 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; | 48 virtual int GetPeerAddress(net::AddressList* address) const OVERRIDE; |
49 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; | 49 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; |
50 virtual const net::BoundNetLog& NetLog() const OVERRIDE; | 50 virtual const net::BoundNetLog& NetLog() const OVERRIDE; |
51 virtual void SetSubresourceSpeculation() OVERRIDE; | 51 virtual void SetSubresourceSpeculation() OVERRIDE; |
52 virtual void SetOmniboxSpeculation() OVERRIDE; | 52 virtual void SetOmniboxSpeculation() OVERRIDE; |
53 virtual bool WasEverUsed() const OVERRIDE; | 53 virtual bool WasEverUsed() const OVERRIDE; |
54 virtual bool UsingTCPFastOpen() const OVERRIDE; | 54 virtual bool UsingTCPFastOpen() const OVERRIDE; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 IOState write_state_; | 149 IOState write_state_; |
150 scoped_refptr<net::IOBuffer> transport_buf_; | 150 scoped_refptr<net::IOBuffer> transport_buf_; |
151 int data_transferred_; | 151 int data_transferred_; |
152 | 152 |
153 DISALLOW_COPY_AND_ASSIGN(SSLSocketAdapter); | 153 DISALLOW_COPY_AND_ASSIGN(SSLSocketAdapter); |
154 }; | 154 }; |
155 | 155 |
156 } // namespace remoting | 156 } // namespace remoting |
157 | 157 |
158 #endif // REMOTING_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_ | 158 #endif // REMOTING_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_ |
OLD | NEW |