| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 // For tests | 58 // For tests |
| 59 static void ClearSessionCache(); | 59 static void ClearSessionCache(); |
| 60 | 60 |
| 61 // SSLClientSocket methods: | 61 // SSLClientSocket methods: |
| 62 virtual void GetSSLInfo(SSLInfo* ssl_info); | 62 virtual void GetSSLInfo(SSLInfo* ssl_info); |
| 63 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); | 63 virtual void GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); |
| 64 virtual NextProtoStatus GetNextProto(std::string* proto); | 64 virtual NextProtoStatus GetNextProto(std::string* proto); |
| 65 virtual void UseDNSSEC(DNSSECProvider* provider); | 65 virtual void UseDNSSEC(DNSSECProvider* provider); |
| 66 | 66 |
| 67 // ClientSocket methods: | 67 // StreamSocket methods: |
| 68 virtual int Connect(CompletionCallback* callback); | 68 virtual int Connect(CompletionCallback* callback); |
| 69 virtual void Disconnect(); | 69 virtual void Disconnect(); |
| 70 virtual bool IsConnected() const; | 70 virtual bool IsConnected() const; |
| 71 virtual bool IsConnectedAndIdle() const; | 71 virtual bool IsConnectedAndIdle() const; |
| 72 virtual int GetPeerAddress(AddressList* address) const; | 72 virtual int GetPeerAddress(AddressList* address) const; |
| 73 virtual int GetLocalAddress(IPEndPoint* address) const; | 73 virtual int GetLocalAddress(IPEndPoint* address) const; |
| 74 virtual const BoundNetLog& NetLog() const; | 74 virtual const BoundNetLog& NetLog() const; |
| 75 virtual void SetSubresourceSpeculation(); | 75 virtual void SetSubresourceSpeculation(); |
| 76 virtual void SetOmniboxSpeculation(); | 76 virtual void SetOmniboxSpeculation(); |
| 77 virtual bool WasEverUsed() const; | 77 virtual bool WasEverUsed() const; |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 // Added the following code Debugging in release mode. | 254 // Added the following code Debugging in release mode. |
| 255 mutable base::Lock lock_; | 255 mutable base::Lock lock_; |
| 256 // This is mutable so that CalledOnValidThread can set it. | 256 // This is mutable so that CalledOnValidThread can set it. |
| 257 // It's guarded by |lock_|. | 257 // It's guarded by |lock_|. |
| 258 mutable base::PlatformThreadId valid_thread_id_; | 258 mutable base::PlatformThreadId valid_thread_id_; |
| 259 }; | 259 }; |
| 260 | 260 |
| 261 } // namespace net | 261 } // namespace net |
| 262 | 262 |
| 263 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 263 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
| OLD | NEW |