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 NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ |
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ |
7 | 7 |
8 #include <Security/Security.h> | 8 #include <Security/Security.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 22 matching lines...) Expand all Loading... |
33 // authentication is requested, the host_and_port field of SSLCertRequestInfo | 33 // authentication is requested, the host_and_port field of SSLCertRequestInfo |
34 // will be populated with |host_and_port|. |ssl_config| specifies | 34 // will be populated with |host_and_port|. |ssl_config| specifies |
35 // the SSL settings. | 35 // the SSL settings. |
36 SSLClientSocketMac(ClientSocketHandle* transport_socket, | 36 SSLClientSocketMac(ClientSocketHandle* transport_socket, |
37 const HostPortPair& host_and_port, | 37 const HostPortPair& host_and_port, |
38 const SSLConfig& ssl_config, | 38 const SSLConfig& ssl_config, |
39 const SSLClientSocketContext& context); | 39 const SSLClientSocketContext& context); |
40 virtual ~SSLClientSocketMac(); | 40 virtual ~SSLClientSocketMac(); |
41 | 41 |
42 // SSLClientSocket implementation. | 42 // SSLClientSocket implementation. |
43 virtual void GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; | |
44 virtual void GetSSLCertRequestInfo( | 43 virtual void GetSSLCertRequestInfo( |
45 SSLCertRequestInfo* cert_request_info) OVERRIDE; | 44 SSLCertRequestInfo* cert_request_info) OVERRIDE; |
46 virtual int ExportKeyingMaterial(const base::StringPiece& label, | 45 virtual int ExportKeyingMaterial(const base::StringPiece& label, |
47 bool has_context, | 46 bool has_context, |
48 const base::StringPiece& context, | 47 const base::StringPiece& context, |
49 unsigned char* out, | 48 unsigned char* out, |
50 unsigned int outlen) OVERRIDE; | 49 unsigned int outlen) OVERRIDE; |
51 virtual NextProtoStatus GetNextProto(std::string* proto, | 50 virtual NextProtoStatus GetNextProto(std::string* proto, |
52 std::string* server_protos) OVERRIDE; | 51 std::string* server_protos) OVERRIDE; |
53 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; | 52 virtual ServerBoundCertService* GetServerBoundCertService() const OVERRIDE; |
54 | 53 |
55 // StreamSocket implementation. | 54 // StreamSocket implementation. |
56 virtual int Connect(const CompletionCallback& callback) OVERRIDE; | 55 virtual int Connect(const CompletionCallback& callback) OVERRIDE; |
57 virtual void Disconnect() OVERRIDE; | 56 virtual void Disconnect() OVERRIDE; |
58 virtual bool IsConnected() const OVERRIDE; | 57 virtual bool IsConnected() const OVERRIDE; |
59 virtual bool IsConnectedAndIdle() const OVERRIDE; | 58 virtual bool IsConnectedAndIdle() const OVERRIDE; |
60 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; | 59 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; |
61 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 60 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
62 virtual const BoundNetLog& NetLog() const OVERRIDE; | 61 virtual const BoundNetLog& NetLog() const OVERRIDE; |
63 virtual void SetSubresourceSpeculation() OVERRIDE; | 62 virtual void SetSubresourceSpeculation() OVERRIDE; |
64 virtual void SetOmniboxSpeculation() OVERRIDE; | 63 virtual void SetOmniboxSpeculation() OVERRIDE; |
65 virtual bool WasEverUsed() const OVERRIDE; | 64 virtual bool WasEverUsed() const OVERRIDE; |
66 virtual bool UsingTCPFastOpen() const OVERRIDE; | 65 virtual bool UsingTCPFastOpen() const OVERRIDE; |
67 virtual int64 NumBytesRead() const OVERRIDE; | 66 virtual int64 NumBytesRead() const OVERRIDE; |
68 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | 67 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; |
| 68 virtual bool GetSSLInfo(SSLInfo* ssl_info) OVERRIDE; |
69 | 69 |
70 // Socket implementation. | 70 // Socket implementation. |
71 virtual int Read(IOBuffer* buf, | 71 virtual int Read(IOBuffer* buf, |
72 int buf_len, | 72 int buf_len, |
73 const CompletionCallback& callback) OVERRIDE; | 73 const CompletionCallback& callback) OVERRIDE; |
74 virtual int Write(IOBuffer* buf, | 74 virtual int Write(IOBuffer* buf, |
75 int buf_len, | 75 int buf_len, |
76 const CompletionCallback& callback) OVERRIDE; | 76 const CompletionCallback& callback) OVERRIDE; |
77 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; | 77 virtual bool SetReceiveBufferSize(int32 size) OVERRIDE; |
78 virtual bool SetSendBufferSize(int32 size) OVERRIDE; | 78 virtual bool SetSendBufferSize(int32 size) OVERRIDE; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // These are the IOBuffers used for operations on the underlying transport. | 172 // These are the IOBuffers used for operations on the underlying transport. |
173 scoped_refptr<IOBuffer> read_io_buf_; | 173 scoped_refptr<IOBuffer> read_io_buf_; |
174 scoped_refptr<IOBuffer> write_io_buf_; | 174 scoped_refptr<IOBuffer> write_io_buf_; |
175 | 175 |
176 BoundNetLog net_log_; | 176 BoundNetLog net_log_; |
177 }; | 177 }; |
178 | 178 |
179 } // namespace net | 179 } // namespace net |
180 | 180 |
181 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ | 181 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ |
OLD | NEW |