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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 int Connect(const CompletionCallback& callback) override; | 72 int Connect(const CompletionCallback& callback) override; |
73 void Disconnect() override; | 73 void Disconnect() override; |
74 bool IsConnected() const override; | 74 bool IsConnected() const override; |
75 bool IsConnectedAndIdle() const override; | 75 bool IsConnectedAndIdle() const override; |
76 int GetPeerAddress(IPEndPoint* address) const override; | 76 int GetPeerAddress(IPEndPoint* address) const override; |
77 int GetLocalAddress(IPEndPoint* address) const override; | 77 int GetLocalAddress(IPEndPoint* address) const override; |
78 const BoundNetLog& NetLog() const override; | 78 const BoundNetLog& NetLog() const override; |
79 void SetSubresourceSpeculation() override; | 79 void SetSubresourceSpeculation() override; |
80 void SetOmniboxSpeculation() override; | 80 void SetOmniboxSpeculation() override; |
81 bool WasEverUsed() const override; | 81 bool WasEverUsed() const override; |
82 bool UsingTCPFastOpen() const override; | |
83 bool GetSSLInfo(SSLInfo* ssl_info) override; | 82 bool GetSSLInfo(SSLInfo* ssl_info) override; |
84 void GetConnectionAttempts(ConnectionAttempts* out) const override; | 83 void GetConnectionAttempts(ConnectionAttempts* out) const override; |
85 void ClearConnectionAttempts() override {} | 84 void ClearConnectionAttempts() override {} |
86 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} | 85 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} |
87 int64_t GetTotalReceivedBytes() const override; | 86 int64_t GetTotalReceivedBytes() const override; |
88 | 87 |
89 // Socket implementation. | 88 // Socket implementation. |
90 int Read(IOBuffer* buf, | 89 int Read(IOBuffer* buf, |
91 int buf_len, | 90 int buf_len, |
92 const CompletionCallback& callback) override; | 91 const CompletionCallback& callback) override; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 // Added the following code Debugging in release mode. | 209 // Added the following code Debugging in release mode. |
211 mutable base::Lock lock_; | 210 mutable base::Lock lock_; |
212 // This is mutable so that CalledOnValidThread can set it. | 211 // This is mutable so that CalledOnValidThread can set it. |
213 // It's guarded by |lock_|. | 212 // It's guarded by |lock_|. |
214 mutable base::PlatformThreadId valid_thread_id_; | 213 mutable base::PlatformThreadId valid_thread_id_; |
215 }; | 214 }; |
216 | 215 |
217 } // namespace net | 216 } // namespace net |
218 | 217 |
219 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 218 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
OLD | NEW |