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 #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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual bool IsConnectedAndIdle() const OVERRIDE; | 46 virtual bool IsConnectedAndIdle() const OVERRIDE; |
47 virtual int GetPeerAddress(net::IPEndPoint* address) const OVERRIDE; | 47 virtual int GetPeerAddress(net::IPEndPoint* address) const OVERRIDE; |
48 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; | 48 virtual int GetLocalAddress(net::IPEndPoint* address) const OVERRIDE; |
49 virtual const net::BoundNetLog& NetLog() const OVERRIDE; | 49 virtual const net::BoundNetLog& NetLog() const OVERRIDE; |
50 virtual void SetSubresourceSpeculation() OVERRIDE; | 50 virtual void SetSubresourceSpeculation() OVERRIDE; |
51 virtual void SetOmniboxSpeculation() OVERRIDE; | 51 virtual void SetOmniboxSpeculation() OVERRIDE; |
52 virtual bool WasEverUsed() const OVERRIDE; | 52 virtual bool WasEverUsed() const OVERRIDE; |
53 virtual bool UsingTCPFastOpen() const OVERRIDE; | 53 virtual bool UsingTCPFastOpen() const OVERRIDE; |
54 virtual int64 NumBytesRead() const OVERRIDE; | 54 virtual int64 NumBytesRead() const OVERRIDE; |
55 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | 55 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; |
| 56 virtual bool WasNpnNegotiated() const OVERRIDE; |
56 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; | 57 virtual net::NextProto GetNegotiatedProtocol() const OVERRIDE; |
| 58 virtual bool GetSSLInfo(net::SSLInfo* ssl_info) OVERRIDE; |
57 | 59 |
58 // net::Socket implementation. | 60 // net::Socket implementation. |
59 virtual int Read(net::IOBuffer* buf, int buf_len, | 61 virtual int Read(net::IOBuffer* buf, int buf_len, |
60 const net::CompletionCallback& callback) OVERRIDE; | 62 const net::CompletionCallback& callback) OVERRIDE; |
61 virtual int Write(net::IOBuffer* buf, int buf_len, | 63 virtual int Write(net::IOBuffer* buf, int buf_len, |
62 const net::CompletionCallback& callback) OVERRIDE; | 64 const net::CompletionCallback& callback) OVERRIDE; |
63 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; | 65 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; |
64 virtual bool SetSendBufferSize(int32 size) OVERRIDE; | 66 virtual bool SetSendBufferSize(int32 size) OVERRIDE; |
65 | 67 |
66 private: | 68 private: |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 147 |
146 bool write_pending_; | 148 bool write_pending_; |
147 scoped_refptr<net::DrainableIOBuffer> write_buffer_; | 149 scoped_refptr<net::DrainableIOBuffer> write_buffer_; |
148 | 150 |
149 DISALLOW_COPY_AND_ASSIGN(SSLSocketAdapter); | 151 DISALLOW_COPY_AND_ASSIGN(SSLSocketAdapter); |
150 }; | 152 }; |
151 | 153 |
152 } // namespace remoting | 154 } // namespace remoting |
153 | 155 |
154 #endif // REMOTING_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_ | 156 #endif // REMOTING_JINGLE_GLUE_SSL_SOCKET_ADAPTER_H_ |
OLD | NEW |