| 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_NSS_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
| 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <certt.h> | 9 #include <certt.h> |
| 10 #include <keyt.h> | 10 #include <keyt.h> |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual void Disconnect(); | 68 virtual void Disconnect(); |
| 69 virtual bool IsConnected() const; | 69 virtual bool IsConnected() const; |
| 70 virtual bool IsConnectedAndIdle() const; | 70 virtual bool IsConnectedAndIdle() const; |
| 71 virtual int GetPeerAddress(AddressList* address) const; | 71 virtual int GetPeerAddress(AddressList* address) const; |
| 72 virtual int GetLocalAddress(IPEndPoint* address) const; | 72 virtual int GetLocalAddress(IPEndPoint* address) const; |
| 73 virtual const BoundNetLog& NetLog() const; | 73 virtual const BoundNetLog& NetLog() const; |
| 74 virtual void SetSubresourceSpeculation(); | 74 virtual void SetSubresourceSpeculation(); |
| 75 virtual void SetOmniboxSpeculation(); | 75 virtual void SetOmniboxSpeculation(); |
| 76 virtual bool WasEverUsed() const; | 76 virtual bool WasEverUsed() const; |
| 77 virtual bool UsingTCPFastOpen() const; | 77 virtual bool UsingTCPFastOpen() const; |
| 78 virtual int64 NumBytesRead() const; | |
| 79 virtual base::TimeDelta GetConnectTimeMicros() const; | |
| 80 | 78 |
| 81 // Socket methods: | 79 // Socket methods: |
| 82 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 80 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 83 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); | 81 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); |
| 84 virtual bool SetReceiveBufferSize(int32 size); | 82 virtual bool SetReceiveBufferSize(int32 size); |
| 85 virtual bool SetSendBufferSize(int32 size); | 83 virtual bool SetSendBufferSize(int32 size); |
| 86 | 84 |
| 87 private: | 85 private: |
| 88 enum State { | 86 enum State { |
| 89 STATE_NONE, | 87 STATE_NONE, |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // Added the following code Debugging in release mode. | 249 // Added the following code Debugging in release mode. |
| 252 mutable base::Lock lock_; | 250 mutable base::Lock lock_; |
| 253 // This is mutable so that CalledOnValidThread can set it. | 251 // This is mutable so that CalledOnValidThread can set it. |
| 254 // It's guarded by |lock_|. | 252 // It's guarded by |lock_|. |
| 255 mutable base::PlatformThreadId valid_thread_id_; | 253 mutable base::PlatformThreadId valid_thread_id_; |
| 256 }; | 254 }; |
| 257 | 255 |
| 258 } // namespace net | 256 } // namespace net |
| 259 | 257 |
| 260 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 258 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
| OLD | NEW |