| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
| 8 #include <certt.h> | 8 #include <certt.h> |
| 9 #include <keyt.h> | 9 #include <keyt.h> |
| 10 #include <nspr.h> | 10 #include <nspr.h> |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 bool IsConnected() const override; | 85 bool IsConnected() const override; |
| 86 bool IsConnectedAndIdle() const override; | 86 bool IsConnectedAndIdle() const override; |
| 87 int GetPeerAddress(IPEndPoint* address) const override; | 87 int GetPeerAddress(IPEndPoint* address) const override; |
| 88 int GetLocalAddress(IPEndPoint* address) const override; | 88 int GetLocalAddress(IPEndPoint* address) const override; |
| 89 const BoundNetLog& NetLog() const override; | 89 const BoundNetLog& NetLog() const override; |
| 90 void SetSubresourceSpeculation() override; | 90 void SetSubresourceSpeculation() override; |
| 91 void SetOmniboxSpeculation() override; | 91 void SetOmniboxSpeculation() override; |
| 92 bool WasEverUsed() const override; | 92 bool WasEverUsed() const override; |
| 93 bool UsingTCPFastOpen() const override; | 93 bool UsingTCPFastOpen() const override; |
| 94 bool GetSSLInfo(SSLInfo* ssl_info) override; | 94 bool GetSSLInfo(SSLInfo* ssl_info) override; |
| 95 void SetRenegotiationsAllowed(bool allowed) override; |
| 95 | 96 |
| 96 // Socket implementation. | 97 // Socket implementation. |
| 97 int Read(IOBuffer* buf, | 98 int Read(IOBuffer* buf, |
| 98 int buf_len, | 99 int buf_len, |
| 99 const CompletionCallback& callback) override; | 100 const CompletionCallback& callback) override; |
| 100 int Write(IOBuffer* buf, | 101 int Write(IOBuffer* buf, |
| 101 int buf_len, | 102 int buf_len, |
| 102 const CompletionCallback& callback) override; | 103 const CompletionCallback& callback) override; |
| 103 int SetReceiveBufferSize(int32 size) override; | 104 int SetReceiveBufferSize(int32 size) override; |
| 104 int SetSendBufferSize(int32 size) override; | 105 int SetSendBufferSize(int32 size) override; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // Added the following code Debugging in release mode. | 210 // Added the following code Debugging in release mode. |
| 210 mutable base::Lock lock_; | 211 mutable base::Lock lock_; |
| 211 // This is mutable so that CalledOnValidThread can set it. | 212 // This is mutable so that CalledOnValidThread can set it. |
| 212 // It's guarded by |lock_|. | 213 // It's guarded by |lock_|. |
| 213 mutable base::PlatformThreadId valid_thread_id_; | 214 mutable base::PlatformThreadId valid_thread_id_; |
| 214 }; | 215 }; |
| 215 | 216 |
| 216 } // namespace net | 217 } // namespace net |
| 217 | 218 |
| 218 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 219 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
| OLD | NEW |