| 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_OPENSSL_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
| 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "net/base/cert_verify_result.h" | 10 #include "net/base/cert_verify_result.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // ClientSocket methods: | 44 // ClientSocket methods: |
| 45 virtual int Connect(CompletionCallback* callback); | 45 virtual int Connect(CompletionCallback* callback); |
| 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 GetPeerAddress(AddressList*) const; | 49 virtual int GetPeerAddress(AddressList*) const; |
| 50 virtual const BoundNetLog& NetLog() const; | 50 virtual const BoundNetLog& NetLog() const; |
| 51 virtual void SetSubresourceSpeculation(); | 51 virtual void SetSubresourceSpeculation(); |
| 52 virtual void SetOmniboxSpeculation(); | 52 virtual void SetOmniboxSpeculation(); |
| 53 virtual bool WasEverUsed() const; | 53 virtual bool WasEverUsed() const; |
| 54 virtual bool UsingTCPFastOpen() const; |
| 54 | 55 |
| 55 // Socket methods: | 56 // Socket methods: |
| 56 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 57 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 57 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 58 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 58 virtual bool SetReceiveBufferSize(int32 size); | 59 virtual bool SetReceiveBufferSize(int32 size); |
| 59 virtual bool SetSendBufferSize(int32 size); | 60 virtual bool SetSendBufferSize(int32 size); |
| 60 | 61 |
| 61 private: | 62 private: |
| 62 bool Init(); | 63 bool Init(); |
| 63 void DoReadCallback(int result); | 64 void DoReadCallback(int result); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 STATE_VERIFY_CERT_COMPLETE, | 137 STATE_VERIFY_CERT_COMPLETE, |
| 137 }; | 138 }; |
| 138 State next_handshake_state_; | 139 State next_handshake_state_; |
| 139 BoundNetLog net_log_; | 140 BoundNetLog net_log_; |
| 140 }; | 141 }; |
| 141 | 142 |
| 142 } // namespace net | 143 } // namespace net |
| 143 | 144 |
| 144 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 145 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
| 145 | 146 |
| OLD | NEW |