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

Side by Side Diff: net/base/ssl_client_socket_mac.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, 9 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_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 16 matching lines...) Expand all
27 SSLClientSocketMac(ClientSocket* transport_socket, 27 SSLClientSocketMac(ClientSocket* transport_socket,
28 const std::string& hostname, 28 const std::string& hostname,
29 const SSLConfig& ssl_config); 29 const SSLConfig& ssl_config);
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);
38 virtual void Disconnect(); 37 virtual void Disconnect();
39 virtual bool IsConnected() const; 38 virtual bool IsConnected() const;
40 virtual bool IsConnectedAndIdle() const; 39 virtual bool IsConnectedAndIdle() const;
41 40
42 // Socket methods: 41 // Socket methods:
43 virtual int Read(char* buf, int buf_len, CompletionCallback* callback); 42 virtual int Read(char* buf, int buf_len, CompletionCallback* callback);
44 virtual int Write(const char* buf, int buf_len, CompletionCallback* callback); 43 virtual int Write(const char* buf, int buf_len, CompletionCallback* callback);
45 44
46 private: 45 private:
47 void DoCallback(int result); 46 void DoCallback(int result);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 std::vector<char> send_buffer_; 98 std::vector<char> send_buffer_;
100 int pending_send_error_; 99 int pending_send_error_;
101 std::vector<char> recv_buffer_; 100 std::vector<char> recv_buffer_;
102 int recv_buffer_head_slop_; 101 int recv_buffer_head_slop_;
103 int recv_buffer_tail_slop_; 102 int recv_buffer_tail_slop_;
104 }; 103 };
105 104
106 } // namespace net 105 } // namespace net
107 106
108 #endif // NET_BASE_SSL_CLIENT_SOCKET_MAC_H_ 107 #endif // NET_BASE_SSL_CLIENT_SOCKET_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698