OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_BASE_SSL_CLIENT_SOCKET_NSS_H_ | 5 #ifndef NET_BASE_SSL_CLIENT_SOCKET_NSS_H_ |
6 #define NET_BASE_SSL_CLIENT_SOCKET_NSS_H_ | 6 #define NET_BASE_SSL_CLIENT_SOCKET_NSS_H_ |
7 | 7 |
8 #include <nspr.h> | 8 #include <nspr.h> |
9 #include <nss.h> | 9 #include <nss.h> |
10 #include <string> | 10 #include <string> |
(...skipping 19 matching lines...) Expand all Loading... |
30 ~SSLClientSocketNSS(); | 30 ~SSLClientSocketNSS(); |
31 | 31 |
32 // SSLClientSocket methods: | 32 // SSLClientSocket methods: |
33 virtual void GetSSLInfo(SSLInfo* ssl_info); | 33 virtual void GetSSLInfo(SSLInfo* ssl_info); |
34 | 34 |
35 // ClientSocket methods: | 35 // ClientSocket methods: |
36 virtual int Connect(CompletionCallback* callback); | 36 virtual int Connect(CompletionCallback* callback); |
37 virtual int ReconnectIgnoringLastError(CompletionCallback* callback); | 37 virtual int ReconnectIgnoringLastError(CompletionCallback* callback); |
38 virtual void Disconnect(); | 38 virtual void Disconnect(); |
39 virtual bool IsConnected() const; | 39 virtual bool IsConnected() const; |
| 40 virtual bool IsConnectedAndIdle() const; |
40 | 41 |
41 // Socket methods: | 42 // Socket methods: |
42 virtual int Read(char* buf, int buf_len, CompletionCallback* callback); | 43 virtual int Read(char* buf, int buf_len, CompletionCallback* callback); |
43 virtual int Write(const char* buf, int buf_len, CompletionCallback* callback); | 44 virtual int Write(const char* buf, int buf_len, CompletionCallback* callback); |
44 | 45 |
45 private: | 46 private: |
46 void DoCallback(int result); | 47 void DoCallback(int result); |
47 void OnIOComplete(int result); | 48 void OnIOComplete(int result); |
48 | 49 |
49 int DoLoop(int last_io_result); | 50 int DoLoop(int last_io_result); |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // Buffers for the network end of the SSL state machine | 100 // Buffers for the network end of the SSL state machine |
100 memio_Private* nss_bufs_; | 101 memio_Private* nss_bufs_; |
101 | 102 |
102 static bool nss_options_initialized_; | 103 static bool nss_options_initialized_; |
103 }; | 104 }; |
104 | 105 |
105 } // namespace net | 106 } // namespace net |
106 | 107 |
107 #endif // NET_BASE_SSL_CLIENT_SOCKET_NSS_H_ | 108 #endif // NET_BASE_SSL_CLIENT_SOCKET_NSS_H_ |
108 | 109 |
OLD | NEW |