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

Unified Diff: net/base/ssl_client_socket_win.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/ssl_client_socket_unittest.cc ('k') | net/base/ssl_client_socket_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/ssl_client_socket_win.h
===================================================================
--- net/base/ssl_client_socket_win.h (revision 14682)
+++ net/base/ssl_client_socket_win.h (working copy)
@@ -44,8 +44,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);
@@ -78,9 +78,12 @@
CompletionCallback* user_callback_;
// Used by both Read and Write functions.
- char* user_buf_;
+ scoped_refptr<IOBuffer> user_buf_;
int user_buf_len_;
+ // Used to Read and Write using transport_.
+ scoped_refptr<IOBuffer> transport_buf_;
+
enum State {
STATE_NONE,
STATE_HANDSHAKE_READ,
« no previous file with comments | « net/base/ssl_client_socket_unittest.cc ('k') | net/base/ssl_client_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698