| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // ClientSocket methods: | 47 // ClientSocket methods: |
| 48 virtual int Connect(CompletionCallback* callback); | 48 virtual int Connect(CompletionCallback* callback); |
| 49 virtual void Disconnect(); | 49 virtual void Disconnect(); |
| 50 virtual bool IsConnected() const; | 50 virtual bool IsConnected() const; |
| 51 virtual bool IsConnectedAndIdle() const; | 51 virtual bool IsConnectedAndIdle() const; |
| 52 virtual int GetPeerAddress(AddressList* address) const; | 52 virtual int GetPeerAddress(AddressList* address) const; |
| 53 virtual const BoundNetLog& NetLog() const { return net_log_; } | 53 virtual const BoundNetLog& NetLog() const { return net_log_; } |
| 54 virtual void SetSubresourceSpeculation(); | 54 virtual void SetSubresourceSpeculation(); |
| 55 virtual void SetOmniboxSpeculation(); | 55 virtual void SetOmniboxSpeculation(); |
| 56 virtual bool WasEverUsed() const; | 56 virtual bool WasEverUsed() const; |
| 57 virtual bool UsingTCPFastOpen() const; |
| 57 | 58 |
| 58 // Socket methods: | 59 // Socket methods: |
| 59 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 60 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 60 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 61 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 61 | 62 |
| 62 virtual bool SetReceiveBufferSize(int32 size); | 63 virtual bool SetReceiveBufferSize(int32 size); |
| 63 virtual bool SetSendBufferSize(int32 size); | 64 virtual bool SetSendBufferSize(int32 size); |
| 64 | 65 |
| 65 private: | 66 private: |
| 66 bool completed_handshake() const { | 67 bool completed_handshake() const { |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 188 |
| 188 // True when the decrypter needs more data in order to decrypt. | 189 // True when the decrypter needs more data in order to decrypt. |
| 189 bool need_more_data_; | 190 bool need_more_data_; |
| 190 | 191 |
| 191 BoundNetLog net_log_; | 192 BoundNetLog net_log_; |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 } // namespace net | 195 } // namespace net |
| 195 | 196 |
| 196 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ | 197 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_WIN_H_ |
| OLD | NEW |