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

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

Issue 43115: Change the bad-certificate handler for SSL (using NSS) to return an... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
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_TCP_CLIENT_SOCKET_H_ 5 #ifndef NET_BASE_TCP_CLIENT_SOCKET_H_
6 #define NET_BASE_TCP_CLIENT_SOCKET_H_ 6 #define NET_BASE_TCP_CLIENT_SOCKET_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 28 matching lines...) Expand all
39 public: 39 public:
40 // The IP address(es) and port number to connect to. The TCP socket will try 40 // The IP address(es) and port number to connect to. The TCP socket will try
41 // each IP address in the list until it succeeds in establishing a 41 // each IP address in the list until it succeeds in establishing a
42 // connection. 42 // connection.
43 explicit TCPClientSocket(const AddressList& addresses); 43 explicit TCPClientSocket(const AddressList& addresses);
44 44
45 ~TCPClientSocket(); 45 ~TCPClientSocket();
46 46
47 // ClientSocket methods: 47 // ClientSocket methods:
48 virtual int Connect(CompletionCallback* callback); 48 virtual int Connect(CompletionCallback* callback);
49 virtual int ReconnectIgnoringLastError(CompletionCallback* callback);
50 virtual void Disconnect(); 49 virtual void Disconnect();
51 virtual bool IsConnected() const; 50 virtual bool IsConnected() const;
52 virtual bool IsConnectedAndIdle() const; 51 virtual bool IsConnectedAndIdle() const;
53 52
54 // Socket methods: 53 // Socket methods:
55 // Multiple outstanding requests are not supported. 54 // Multiple outstanding requests are not supported.
56 // Full duplex mode (reading and writing at the same time) is not supported 55 // Full duplex mode (reading and writing at the same time) is not supported
57 // on Windows (but is supported on Linux and Mac for ease of implementation 56 // on Windows (but is supported on Linux and Mac for ease of implementation
58 // of SSLClientSocket) 57 // of SSLClientSocket)
59 virtual int Read(char* buf, int buf_len, CompletionCallback* callback); 58 virtual int Read(char* buf, int buf_len, CompletionCallback* callback);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 CompletionCallback* callback_; 130 CompletionCallback* callback_;
132 131
133 int CreateSocket(const struct addrinfo* ai); 132 int CreateSocket(const struct addrinfo* ai);
134 void DoCallback(int rv); 133 void DoCallback(int rv);
135 void DidCompleteConnect(); 134 void DidCompleteConnect();
136 }; 135 };
137 136
138 } // namespace net 137 } // namespace net
139 138
140 #endif // NET_BASE_TCP_CLIENT_SOCKET_H_ 139 #endif // NET_BASE_TCP_CLIENT_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698