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

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

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/socks_client_socket.cc ('k') | net/socket/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-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ 6 #define NET_SOCKET_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 27 matching lines...) Expand all
38 38
39 // ClientSocket methods: 39 // ClientSocket methods:
40 virtual int Connect(CompletionCallback* callback); 40 virtual int Connect(CompletionCallback* callback);
41 virtual void Disconnect(); 41 virtual void Disconnect();
42 virtual bool IsConnected() const; 42 virtual bool IsConnected() const;
43 virtual bool IsConnectedAndIdle() const; 43 virtual bool IsConnectedAndIdle() const;
44 44
45 // Socket methods: 45 // Socket methods:
46 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback); 46 virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
47 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback); 47 virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback);
48 virtual bool SetReceiveBufferSize(int32 size);
49 virtual bool SetSendBufferSize(int32 size);
48 50
49 private: 51 private:
50 void DoCallback(int result); 52 void DoCallback(int result);
51 void OnIOComplete(int result); 53 void OnIOComplete(int result);
52 54
53 int DoLoop(int last_io_result); 55 int DoLoop(int last_io_result);
54 int DoPayloadRead(); 56 int DoPayloadRead();
55 int DoPayloadWrite(); 57 int DoPayloadWrite();
56 int DoHandshake(); 58 int DoHandshake();
57 int DoVerifyCert(); 59 int DoVerifyCert();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 int recv_buffer_tail_slop_; 111 int recv_buffer_tail_slop_;
110 112
111 // This buffer holds data for Read() operations on the underlying transport 113 // This buffer holds data for Read() operations on the underlying transport
112 // (ClientSocket::Read()). 114 // (ClientSocket::Read()).
113 scoped_refptr<IOBuffer> read_io_buf_; 115 scoped_refptr<IOBuffer> read_io_buf_;
114 }; 116 };
115 117
116 } // namespace net 118 } // namespace net
117 119
118 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_ 120 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_MAC_H_
OLDNEW
« no previous file with comments | « net/socket/socks_client_socket.cc ('k') | net/socket/ssl_client_socket_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698