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 NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ |
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #define SECURITY_WIN32 // Needs to be defined before including security.h | 9 #define SECURITY_WIN32 // Needs to be defined before including security.h |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 const HostPortPair& host_and_port, | 43 const HostPortPair& host_and_port, |
44 const SSLConfig& ssl_config, | 44 const SSLConfig& ssl_config, |
45 CertVerifier* cert_verifier); | 45 CertVerifier* cert_verifier); |
46 ~SSLClientSocketWin(); | 46 ~SSLClientSocketWin(); |
47 | 47 |
48 // SSLClientSocket methods: | 48 // SSLClientSocket methods: |
49 virtual void GetSSLInfo(SSLInfo* ssl_info); | 49 virtual void GetSSLInfo(SSLInfo* ssl_info); |
50 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); | 50 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); |
51 virtual NextProtoStatus GetNextProto(std::string* proto); | 51 virtual NextProtoStatus GetNextProto(std::string* proto); |
52 | 52 |
53 // ClientSocket methods: | 53 // StreamSocket methods: |
54 virtual int Connect(CompletionCallback* callback); | 54 virtual int Connect(CompletionCallback* callback); |
55 virtual void Disconnect(); | 55 virtual void Disconnect(); |
56 virtual bool IsConnected() const; | 56 virtual bool IsConnected() const; |
57 virtual bool IsConnectedAndIdle() const; | 57 virtual bool IsConnectedAndIdle() const; |
58 virtual int GetPeerAddress(AddressList* address) const; | 58 virtual int GetPeerAddress(AddressList* address) const; |
59 virtual int GetLocalAddress(IPEndPoint* address) const; | 59 virtual int GetLocalAddress(IPEndPoint* address) const; |
60 virtual const BoundNetLog& NetLog() const { return net_log_; } | 60 virtual const BoundNetLog& NetLog() const { return net_log_; } |
61 virtual void SetSubresourceSpeculation(); | 61 virtual void SetSubresourceSpeculation(); |
62 virtual void SetOmniboxSpeculation(); | 62 virtual void SetOmniboxSpeculation(); |
63 virtual bool WasEverUsed() const; | 63 virtual bool WasEverUsed() const; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 196 |
197 // True when the decrypter needs more data in order to decrypt. | 197 // True when the decrypter needs more data in order to decrypt. |
198 bool need_more_data_; | 198 bool need_more_data_; |
199 | 199 |
200 BoundNetLog net_log_; | 200 BoundNetLog net_log_; |
201 }; | 201 }; |
202 | 202 |
203 } // namespace net | 203 } // namespace net |
204 | 204 |
205 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ | 205 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ |
OLD | NEW |