| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_BASE_SSL_CLIENT_SOCKET_WIN_H_ | 5 #ifndef NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ |
| 6 #define NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ | 6 #define NET_BASE_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 24 matching lines...) Expand all Loading... |
| 35 ~SSLClientSocketWin(); | 35 ~SSLClientSocketWin(); |
| 36 | 36 |
| 37 // SSLClientSocket methods: | 37 // SSLClientSocket methods: |
| 38 virtual void GetSSLInfo(SSLInfo* ssl_info); | 38 virtual void GetSSLInfo(SSLInfo* ssl_info); |
| 39 | 39 |
| 40 // ClientSocket methods: | 40 // ClientSocket methods: |
| 41 virtual int Connect(CompletionCallback* callback); | 41 virtual int Connect(CompletionCallback* callback); |
| 42 virtual int ReconnectIgnoringLastError(CompletionCallback* callback); | 42 virtual int ReconnectIgnoringLastError(CompletionCallback* callback); |
| 43 virtual void Disconnect(); | 43 virtual void Disconnect(); |
| 44 virtual bool IsConnected() const; | 44 virtual bool IsConnected() const; |
| 45 virtual bool IsConnectedAndIdle() const; |
| 45 | 46 |
| 46 // Socket methods: | 47 // Socket methods: |
| 47 virtual int Read(char* buf, int buf_len, CompletionCallback* callback); | 48 virtual int Read(char* buf, int buf_len, CompletionCallback* callback); |
| 48 virtual int Write(const char* buf, int buf_len, CompletionCallback* callback); | 49 virtual int Write(const char* buf, int buf_len, CompletionCallback* callback); |
| 49 | 50 |
| 50 private: | 51 private: |
| 51 void DoCallback(int result); | 52 void DoCallback(int result); |
| 52 void OnIOComplete(int result); | 53 void OnIOComplete(int result); |
| 53 | 54 |
| 54 int DoLoop(int last_io_result); | 55 int DoLoop(int last_io_result); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 bool ignore_ok_result_; | 139 bool ignore_ok_result_; |
| 139 | 140 |
| 140 // True if the user has no client certificate. | 141 // True if the user has no client certificate. |
| 141 bool no_client_cert_; | 142 bool no_client_cert_; |
| 142 }; | 143 }; |
| 143 | 144 |
| 144 } // namespace net | 145 } // namespace net |
| 145 | 146 |
| 146 #endif // NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ | 147 #endif // NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ |
| 147 | 148 |
| OLD | NEW |