OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 9 #include <string> |
10 | 10 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual void Disconnect(); | 62 virtual void Disconnect(); |
63 virtual bool IsConnected() const; | 63 virtual bool IsConnected() const; |
64 virtual bool IsConnectedAndIdle() const; | 64 virtual bool IsConnectedAndIdle() const; |
65 virtual int GetPeerAddress(AddressList* address) const; | 65 virtual int GetPeerAddress(AddressList* address) const; |
66 virtual int GetLocalAddress(IPEndPoint* address) const; | 66 virtual int GetLocalAddress(IPEndPoint* address) const; |
67 virtual const BoundNetLog& NetLog() const; | 67 virtual const BoundNetLog& NetLog() const; |
68 virtual void SetSubresourceSpeculation(); | 68 virtual void SetSubresourceSpeculation(); |
69 virtual void SetOmniboxSpeculation(); | 69 virtual void SetOmniboxSpeculation(); |
70 virtual bool WasEverUsed() const; | 70 virtual bool WasEverUsed() const; |
71 virtual bool UsingTCPFastOpen() const; | 71 virtual bool UsingTCPFastOpen() const; |
| 72 virtual int64 NumBytesRead() const; |
| 73 virtual base::TimeDelta GetConnectTimeMicros() const; |
72 | 74 |
73 // Socket methods: | 75 // Socket methods: |
74 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 76 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
75 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 77 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
76 virtual bool SetReceiveBufferSize(int32 size); | 78 virtual bool SetReceiveBufferSize(int32 size); |
77 virtual bool SetSendBufferSize(int32 size); | 79 virtual bool SetSendBufferSize(int32 size); |
78 | 80 |
79 private: | 81 private: |
80 bool Init(); | 82 bool Init(); |
81 void DoReadCallback(int result); | 83 void DoReadCallback(int result); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 }; | 159 }; |
158 State next_handshake_state_; | 160 State next_handshake_state_; |
159 NextProtoStatus npn_status_; | 161 NextProtoStatus npn_status_; |
160 std::string npn_proto_; | 162 std::string npn_proto_; |
161 BoundNetLog net_log_; | 163 BoundNetLog net_log_; |
162 }; | 164 }; |
163 | 165 |
164 } // namespace net | 166 } // namespace net |
165 | 167 |
166 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ | 168 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ |
OLD | NEW |