Chromium Code Reviews

Side by Side Diff: net/base/ssl_client_socket_mac.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.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « net/base/client_socket_pool_unittest.cc ('k') | net/base/ssl_client_socket_mac.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_MAC_H_ 5 #ifndef NET_BASE_SSL_CLIENT_SOCKET_MAC_H_
6 #define NET_BASE_SSL_CLIENT_SOCKET_MAC_H_ 6 #define NET_BASE_SSL_CLIENT_SOCKET_MAC_H_
7 7
8 #include <Security/Security.h> 8 #include <Security/Security.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 19 matching lines...)
30 ~SSLClientSocketMac(); 30 ~SSLClientSocketMac();
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...)
99 int pending_send_error_; 100 int pending_send_error_;
100 std::vector<char> recv_buffer_; 101 std::vector<char> recv_buffer_;
101 int recv_buffer_head_slop_; 102 int recv_buffer_head_slop_;
102 int recv_buffer_tail_slop_; 103 int recv_buffer_tail_slop_;
103 }; 104 };
104 105
105 } // namespace net 106 } // namespace net
106 107
107 #endif // NET_BASE_SSL_CLIENT_SOCKET_MAC_H_ 108 #endif // NET_BASE_SSL_CLIENT_SOCKET_MAC_H_
108 109
OLDNEW
« no previous file with comments | « net/base/client_socket_pool_unittest.cc ('k') | net/base/ssl_client_socket_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine