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

Side by Side Diff: net/socket/ssl_client_socket_openssl.h

Issue 795573002: Implement zero-copy SSL buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed CHECK failure caused by removing setting offset to 0 Created 6 years 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
« no previous file with comments | « no previous file | net/socket/ssl_client_socket_openssl.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // Adds the SignedCertificateTimestamps from ct_verify_result_ to |ssl_info|. 180 // Adds the SignedCertificateTimestamps from ct_verify_result_ to |ssl_info|.
181 // SCTs are held in three separate vectors in ct_verify_result, each 181 // SCTs are held in three separate vectors in ct_verify_result, each
182 // vetor representing a particular verification state, this method associates 182 // vetor representing a particular verification state, this method associates
183 // each of the SCTs with the corresponding SCTVerifyStatus as it adds it to 183 // each of the SCTs with the corresponding SCTVerifyStatus as it adds it to
184 // the |ssl_info|.signed_certificate_timestamps list. 184 // the |ssl_info|.signed_certificate_timestamps list.
185 void AddSCTInfoToSSLInfo(SSLInfo* ssl_info) const; 185 void AddSCTInfoToSSLInfo(SSLInfo* ssl_info) const;
186 186
187 bool transport_send_busy_; 187 bool transport_send_busy_;
188 bool transport_recv_busy_; 188 bool transport_recv_busy_;
189 189
190 scoped_refptr<DrainableIOBuffer> send_buffer_; 190 // Buffers which are shared by BoringSSL and SSLClientSocketOpenSSL.
191 scoped_refptr<IOBuffer> recv_buffer_; 191 // GrowableIOBuffer is used to keep ownership and setting offset.
192 scoped_refptr<GrowableIOBuffer> send_buffer_;
193 scoped_refptr<GrowableIOBuffer> recv_buffer_;
192 194
193 CompletionCallback user_connect_callback_; 195 CompletionCallback user_connect_callback_;
194 CompletionCallback user_read_callback_; 196 CompletionCallback user_read_callback_;
195 CompletionCallback user_write_callback_; 197 CompletionCallback user_write_callback_;
196 198
197 // Used by Read function. 199 // Used by Read function.
198 scoped_refptr<IOBuffer> user_read_buf_; 200 scoped_refptr<IOBuffer> user_read_buf_;
199 int user_read_buf_len_; 201 int user_read_buf_len_;
200 202
201 // Used by Write function. 203 // Used by Write function.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 // pinning failure. It is a (somewhat) human-readable string. 313 // pinning failure. It is a (somewhat) human-readable string.
312 std::string pinning_failure_log_; 314 std::string pinning_failure_log_;
313 315
314 BoundNetLog net_log_; 316 BoundNetLog net_log_;
315 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_; 317 base::WeakPtrFactory<SSLClientSocketOpenSSL> weak_factory_;
316 }; 318 };
317 319
318 } // namespace net 320 } // namespace net
319 321
320 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_ 322 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_OPENSSL_H_
OLDNEW
« no previous file with comments | « no previous file | net/socket/ssl_client_socket_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698