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

Side by Side Diff: net/base/ssl_client_socket_win.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_unittest.cc ('k') | net/base/ssl_client_socket_win.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_WIN_H_ 5 #ifndef NET_BASE_SSL_CLIENT_SOCKET_WIN_H_
6 #define NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ 6 #define NET_BASE_SSL_CLIENT_SOCKET_WIN_H_
7 7
8 #define SECURITY_WIN32 // Needs to be defined before including security.h 8 #define SECURITY_WIN32 // Needs to be defined before including security.h
9 9
10 #include <windows.h> 10 #include <windows.h>
(...skipping 24 matching lines...) Expand all
35 ~SSLClientSocketWin(); 35 ~SSLClientSocketWin();
36 36
37 // SSLClientSocket methods: 37 // SSLClientSocket methods:
38 virtual void GetSSLInfo(SSLInfo* ssl_info); 38 virtual void GetSSLInfo(SSLInfo* ssl_info);
39 39
40 // ClientSocket methods: 40 // ClientSocket methods:
41 virtual int Connect(CompletionCallback* callback); 41 virtual int Connect(CompletionCallback* callback);
42 virtual int ReconnectIgnoringLastError(CompletionCallback* callback); 42 virtual int ReconnectIgnoringLastError(CompletionCallback* callback);
43 virtual void Disconnect(); 43 virtual void Disconnect();
44 virtual bool IsConnected() const; 44 virtual bool IsConnected() const;
45 virtual bool IsConnectedAndIdle() const;
45 46
46 // Socket methods: 47 // Socket methods:
47 virtual int Read(char* buf, int buf_len, CompletionCallback* callback); 48 virtual int Read(char* buf, int buf_len, CompletionCallback* callback);
48 virtual int Write(const char* buf, int buf_len, CompletionCallback* callback); 49 virtual int Write(const char* buf, int buf_len, CompletionCallback* callback);
49 50
50 private: 51 private:
51 void DoCallback(int result); 52 void DoCallback(int result);
52 void OnIOComplete(int result); 53 void OnIOComplete(int result);
53 54
54 int DoLoop(int last_io_result); 55 int DoLoop(int last_io_result);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 bool ignore_ok_result_; 139 bool ignore_ok_result_;
139 140
140 // True if the user has no client certificate. 141 // True if the user has no client certificate.
141 bool no_client_cert_; 142 bool no_client_cert_;
142 }; 143 };
143 144
144 } // namespace net 145 } // namespace net
145 146
146 #endif // NET_BASE_SSL_CLIENT_SOCKET_WIN_H_ 147 #endif // NET_BASE_SSL_CLIENT_SOCKET_WIN_H_
147 148
OLDNEW
« no previous file with comments | « net/base/ssl_client_socket_unittest.cc ('k') | net/base/ssl_client_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698