| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // ClientSocket methods: | 42 // ClientSocket methods: |
| 43 virtual int Connect(CompletionCallback* callback); | 43 virtual int Connect(CompletionCallback* callback); |
| 44 virtual void Disconnect(); | 44 virtual void Disconnect(); |
| 45 virtual bool IsConnected() const; | 45 virtual bool IsConnected() const; |
| 46 virtual bool IsConnectedAndIdle() const; | 46 virtual bool IsConnectedAndIdle() const; |
| 47 | 47 |
| 48 // Socket methods: | 48 // Socket methods: |
| 49 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 49 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 50 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 50 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 51 | 51 |
| 52 virtual bool SetReceiveBufferSize(int32 size); |
| 53 virtual bool SetSendBufferSize(int32 size); |
| 54 |
| 52 private: | 55 private: |
| 53 void DoCallback(int result); | 56 void DoCallback(int result); |
| 54 void OnIOComplete(int result); | 57 void OnIOComplete(int result); |
| 55 | 58 |
| 56 int DoLoop(int last_io_result); | 59 int DoLoop(int last_io_result); |
| 57 int DoHandshakeRead(); | 60 int DoHandshakeRead(); |
| 58 int DoHandshakeReadComplete(int result); | 61 int DoHandshakeReadComplete(int result); |
| 59 int DoHandshakeWrite(); | 62 int DoHandshakeWrite(); |
| 60 int DoHandshakeWriteComplete(int result); | 63 int DoHandshakeWriteComplete(int result); |
| 61 int DoVerifyCert(); | 64 int DoVerifyCert(); |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 // to be interpreted as EOF. | 152 // to be interpreted as EOF. |
| 150 bool ignore_ok_result_; | 153 bool ignore_ok_result_; |
| 151 | 154 |
| 152 // Renegotiation is in progress. | 155 // Renegotiation is in progress. |
| 153 bool renegotiating_; | 156 bool renegotiating_; |
| 154 }; | 157 }; |
| 155 | 158 |
| 156 } // namespace net | 159 } // namespace net |
| 157 | 160 |
| 158 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ | 161 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ |
| OLD | NEW |