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

Unified Diff: net/base/ssl_client_socket_mac.h

Issue 87073: Extend the use of IOBuffers to the code underneath... (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/socket.h ('k') | net/base/ssl_client_socket_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/ssl_client_socket_mac.h
===================================================================
--- net/base/ssl_client_socket_mac.h (revision 14682)
+++ net/base/ssl_client_socket_mac.h (working copy)
@@ -39,8 +39,8 @@
virtual bool IsConnectedAndIdle() const;
// Socket methods:
- virtual int Read(char* buf, int buf_len, CompletionCallback* callback);
- virtual int Write(const char* buf, int buf_len, CompletionCallback* callback);
+ virtual int Read(IOBuffer* buf, int buf_len, CompletionCallback* callback);
+ virtual int Write(IOBuffer* buf, int buf_len, CompletionCallback* callback);
private:
void DoCallback(int result);
@@ -70,7 +70,7 @@
CompletionCallback* user_callback_;
// Used by both Read and Write functions.
- char* user_buf_;
+ scoped_refptr<IOBuffer> user_buf_;
int user_buf_len_;
enum State {
@@ -96,6 +96,10 @@
std::vector<char> recv_buffer_;
int recv_buffer_head_slop_;
int recv_buffer_tail_slop_;
+
+ // This buffer holds data for Read() operations on the underlying transport
+ // (ClientSocket::Read()).
+ scoped_refptr<IOBuffer> read_io_buf_;
};
} // namespace net
« no previous file with comments | « net/base/socket.h ('k') | net/base/ssl_client_socket_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698