| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 virtual void Disconnect(); | 45 virtual void Disconnect(); |
| 46 virtual bool IsConnected() const; | 46 virtual bool IsConnected() const; |
| 47 virtual bool IsConnectedAndIdle() const; | 47 virtual bool IsConnectedAndIdle() const; |
| 48 virtual int GetPeerAddress(net::AddressList* address) const; | 48 virtual int GetPeerAddress(net::AddressList* address) const; |
| 49 virtual int GetLocalAddress(net::IPEndPoint* address) const; | 49 virtual int GetLocalAddress(net::IPEndPoint* address) const; |
| 50 virtual const net::BoundNetLog& NetLog() const; | 50 virtual const net::BoundNetLog& NetLog() const; |
| 51 virtual void SetSubresourceSpeculation(); | 51 virtual void SetSubresourceSpeculation(); |
| 52 virtual void SetOmniboxSpeculation(); | 52 virtual void SetOmniboxSpeculation(); |
| 53 virtual bool WasEverUsed() const; | 53 virtual bool WasEverUsed() const; |
| 54 virtual bool UsingTCPFastOpen() const; | 54 virtual bool UsingTCPFastOpen() const; |
| 55 virtual int64 NumBytesRead() const; |
| 56 virtual int GetConnectTimeMicros() const; |
| 55 | 57 |
| 56 // net::Socket implementation | 58 // net::Socket implementation |
| 57 | 59 |
| 58 virtual int Read(net::IOBuffer* buf, int buf_len, | 60 virtual int Read(net::IOBuffer* buf, int buf_len, |
| 59 net::CompletionCallback* callback); | 61 net::CompletionCallback* callback); |
| 60 virtual int Write(net::IOBuffer* buf, int buf_len, | 62 virtual int Write(net::IOBuffer* buf, int buf_len, |
| 61 net::CompletionCallback* callback); | 63 net::CompletionCallback* callback); |
| 62 virtual bool SetReceiveBufferSize(int32 size); | 64 virtual bool SetReceiveBufferSize(int32 size); |
| 63 virtual bool SetSendBufferSize(int32 size); | 65 virtual bool SetSendBufferSize(int32 size); |
| 64 | 66 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 IOState write_state_; | 145 IOState write_state_; |
| 144 scoped_refptr<net::IOBuffer> transport_buf_; | 146 scoped_refptr<net::IOBuffer> transport_buf_; |
| 145 int data_transferred_; | 147 int data_transferred_; |
| 146 | 148 |
| 147 DISALLOW_COPY_AND_ASSIGN(SSLSocketAdapter); | 149 DISALLOW_COPY_AND_ASSIGN(SSLSocketAdapter); |
| 148 }; | 150 }; |
| 149 | 151 |
| 150 } // namespace remoting | 152 } // namespace remoting |
| 151 | 153 |
| 152 #endif // REMOTING_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_ | 154 #endif // REMOTING_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_ |
| OLD | NEW |