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

Unified Diff: net/base/tcp_listen_socket.h

Issue 10389007: Change TCPListenSocket::SendInternal to use a non-blocking implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « no previous file | net/base/tcp_listen_socket.cc » ('j') | net/base/tcp_listen_socket.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/tcp_listen_socket.h
===================================================================
--- net/base/tcp_listen_socket.h (revision 135347)
+++ net/base/tcp_listen_socket.h (working copy)
@@ -26,6 +26,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/memory/weak_ptr.h"
#include "net/base/listen_socket.h"
#include "net/base/net_export.h"
@@ -103,7 +104,12 @@
private:
bool reads_paused_;
bool has_pending_reads_;
+ bool has_pending_writes_;
+ std::string send_data_;
+ // Used to continue sending data asynchronously.
+ base::WeakPtrFactory<TCPListenSocket> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(TCPListenSocket);
};
« no previous file with comments | « no previous file | net/base/tcp_listen_socket.cc » ('j') | net/base/tcp_listen_socket.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698