OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 | 7 |
8 #define SECURITY_WIN32 // Needs to be defined before including security.h | 8 #define SECURITY_WIN32 // Needs to be defined before including security.h |
9 | 9 |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 28 matching lines...) Expand all Loading... |
39 // SSLClientSocket methods: | 39 // SSLClientSocket methods: |
40 virtual void GetSSLInfo(SSLInfo* ssl_info); | 40 virtual void GetSSLInfo(SSLInfo* ssl_info); |
41 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); | 41 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); |
42 virtual NextProtoStatus GetNextProto(std::string* proto); | 42 virtual NextProtoStatus GetNextProto(std::string* proto); |
43 | 43 |
44 // ClientSocket methods: | 44 // ClientSocket methods: |
45 virtual int Connect(CompletionCallback* callback, LoadLog* load_log); | 45 virtual int Connect(CompletionCallback* callback, LoadLog* load_log); |
46 virtual void Disconnect(); | 46 virtual void Disconnect(); |
47 virtual bool IsConnected() const; | 47 virtual bool IsConnected() const; |
48 virtual bool IsConnectedAndIdle() const; | 48 virtual bool IsConnectedAndIdle() const; |
49 virtual int GetPeerName(struct sockaddr* name, socklen_t* namelen); | 49 virtual int GetPeerAddress(AddressList* address) const; |
50 | 50 |
51 // Socket methods: | 51 // Socket methods: |
52 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 52 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
53 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 53 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
54 | 54 |
55 virtual bool SetReceiveBufferSize(int32 size); | 55 virtual bool SetReceiveBufferSize(int32 size); |
56 virtual bool SetSendBufferSize(int32 size); | 56 virtual bool SetSendBufferSize(int32 size); |
57 | 57 |
58 private: | 58 private: |
59 bool completed_handshake() const { | 59 bool completed_handshake() const { |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 | 182 |
183 // True when the decrypter needs more data in order to decrypt. | 183 // True when the decrypter needs more data in order to decrypt. |
184 bool need_more_data_; | 184 bool need_more_data_; |
185 | 185 |
186 scoped_refptr<LoadLog> load_log_; | 186 scoped_refptr<LoadLog> load_log_; |
187 }; | 187 }; |
188 | 188 |
189 } // namespace net | 189 } // namespace net |
190 | 190 |
191 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ | 191 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ |
OLD | NEW |