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

Side by Side Diff: net/socket/ssl_client_socket_mac.cc

Issue 199048: Add methods for setting socket buffers to the Socket (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/socket/ssl_client_socket_mac.h ('k') | net/socket/ssl_client_socket_nss.h » ('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) 2008-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008-2009 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 #include "net/socket/ssl_client_socket_mac.h" 5 #include "net/socket/ssl_client_socket_mac.h"
6 6
7 #include "base/scoped_cftyperef.h" 7 #include "base/scoped_cftyperef.h"
8 #include "base/singleton.h" 8 #include "base/singleton.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "net/base/cert_verifier.h" 10 #include "net/base/cert_verifier.h"
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 next_state_ = STATE_PAYLOAD_WRITE; 405 next_state_ = STATE_PAYLOAD_WRITE;
406 int rv = DoLoop(OK); 406 int rv = DoLoop(OK);
407 if (rv == ERR_IO_PENDING) { 407 if (rv == ERR_IO_PENDING) {
408 user_callback_ = callback; 408 user_callback_ = callback;
409 } else { 409 } else {
410 user_buf_ = NULL; 410 user_buf_ = NULL;
411 } 411 }
412 return rv; 412 return rv;
413 } 413 }
414 414
415 bool SSLClientSocketMac::SetReceiveBufferSize(int32 size) {
416 return transport_->SetReceiveBufferSize(size);
417 }
418
419 bool SSLClientSocketMac::SetSendBufferSize(int32 size) {
420 return transport_->SetSendBufferSize(size);
421 }
422
415 void SSLClientSocketMac::GetSSLInfo(SSLInfo* ssl_info) { 423 void SSLClientSocketMac::GetSSLInfo(SSLInfo* ssl_info) {
416 ssl_info->Reset(); 424 ssl_info->Reset();
417 425
418 // set cert 426 // set cert
419 ssl_info->cert = server_cert_; 427 ssl_info->cert = server_cert_;
420 428
421 // update status 429 // update status
422 ssl_info->cert_status = server_cert_verify_result_.cert_status; 430 ssl_info->cert_status = server_cert_verify_result_.cert_status;
423 431
424 // security info 432 // security info
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 828
821 if (rv < 0 && rv != ERR_IO_PENDING) { 829 if (rv < 0 && rv != ERR_IO_PENDING) {
822 return OSStatusFromNetError(rv); 830 return OSStatusFromNetError(rv);
823 } 831 }
824 832
825 // always lie to our caller 833 // always lie to our caller
826 return noErr; 834 return noErr;
827 } 835 }
828 836
829 } // namespace net 837 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_mac.h ('k') | net/socket/ssl_client_socket_nss.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698