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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <certt.h> | 9 #include <certt.h> |
10 #include <keyt.h> | 10 #include <keyt.h> |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 unsigned char* out, | 67 unsigned char* out, |
68 unsigned int outlen) OVERRIDE; | 68 unsigned int outlen) OVERRIDE; |
69 virtual NextProtoStatus GetNextProto(std::string* proto, | 69 virtual NextProtoStatus GetNextProto(std::string* proto, |
70 std::string* server_protos) OVERRIDE; | 70 std::string* server_protos) OVERRIDE; |
71 | 71 |
72 // StreamSocket implementation. | 72 // StreamSocket implementation. |
73 virtual int Connect(const CompletionCallback& callback) OVERRIDE; | 73 virtual int Connect(const CompletionCallback& callback) OVERRIDE; |
74 virtual void Disconnect() OVERRIDE; | 74 virtual void Disconnect() OVERRIDE; |
75 virtual bool IsConnected() const OVERRIDE; | 75 virtual bool IsConnected() const OVERRIDE; |
76 virtual bool IsConnectedAndIdle() const OVERRIDE; | 76 virtual bool IsConnectedAndIdle() const OVERRIDE; |
77 virtual int GetPeerAddress(AddressList* address) const OVERRIDE; | 77 virtual int GetPeerAddress(IPEndPoint* address) const OVERRIDE; |
78 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; | 78 virtual int GetLocalAddress(IPEndPoint* address) const OVERRIDE; |
79 virtual const BoundNetLog& NetLog() const OVERRIDE; | 79 virtual const BoundNetLog& NetLog() const OVERRIDE; |
80 virtual void SetSubresourceSpeculation() OVERRIDE; | 80 virtual void SetSubresourceSpeculation() OVERRIDE; |
81 virtual void SetOmniboxSpeculation() OVERRIDE; | 81 virtual void SetOmniboxSpeculation() OVERRIDE; |
82 virtual bool WasEverUsed() const OVERRIDE; | 82 virtual bool WasEverUsed() const OVERRIDE; |
83 virtual bool UsingTCPFastOpen() const OVERRIDE; | 83 virtual bool UsingTCPFastOpen() const OVERRIDE; |
84 virtual int64 NumBytesRead() const OVERRIDE; | 84 virtual int64 NumBytesRead() const OVERRIDE; |
85 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; | 85 virtual base::TimeDelta GetConnectTimeMicros() const OVERRIDE; |
86 | 86 |
87 // Socket implementation. | 87 // Socket implementation. |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 // Added the following code Debugging in release mode. | 304 // Added the following code Debugging in release mode. |
305 mutable base::Lock lock_; | 305 mutable base::Lock lock_; |
306 // This is mutable so that CalledOnValidThread can set it. | 306 // This is mutable so that CalledOnValidThread can set it. |
307 // It's guarded by |lock_|. | 307 // It's guarded by |lock_|. |
308 mutable base::PlatformThreadId valid_thread_id_; | 308 mutable base::PlatformThreadId valid_thread_id_; |
309 }; | 309 }; |
310 | 310 |
311 } // namespace net | 311 } // namespace net |
312 | 312 |
313 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ | 313 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_NSS_H_ |
OLD | NEW |