Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: net/base/ssl_client_socket_nss.h

Issue 21501: If an idle socket has received data unexpectedly, we... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Final upload before checkin. Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/ssl_client_socket_mac.cc ('k') | net/base/ssl_client_socket_nss.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/base/ssl_client_socket_mac.cc ('k') | net/base/ssl_client_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698