Chromium Code Reviews| Index: net/base/tcp_listen_socket.h |
| =================================================================== |
| --- net/base/tcp_listen_socket.h (revision 135347) |
| +++ net/base/tcp_listen_socket.h (working copy) |
| @@ -12,6 +12,8 @@ |
| #define NET_BASE_TCP_LISTEN_SOCKET_H_ |
| #pragma once |
| +#include <vector> |
| + |
| #include "build/build_config.h" |
| #if defined(OS_WIN) |
| @@ -26,6 +28,10 @@ |
| #include "base/basictypes.h" |
| #include "base/compiler_specific.h" |
| +#include "base/memory/ref_counted.h" |
| +#include "base/timer.h" |
| +#include "net/base/backoff_entry.h" |
| +#include "net/base/io_buffer.h" |
| #include "net/base/listen_socket.h" |
| #include "net/base/net_export.h" |
| @@ -101,9 +107,18 @@ |
| SOCKET socket_; |
| private: |
| + void SendData(); |
| + |
| bool reads_paused_; |
| bool has_pending_reads_; |
| + std::vector<scoped_refptr<DrainableIOBuffer> > send_buffers_; |
|
mmenke
2012/05/09 19:20:08
Out of paranoia, might be best to make this a list
Marshall
2012/05/10 16:28:05
Done.
|
| + int send_pending_size_; |
| + bool send_error_; |
| + net::BackoffEntry send_backoff_; |
| + // Used to continue sending data asynchronously. |
| + base::OneShotTimer<TCPListenSocket> send_timer_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(TCPListenSocket); |
| }; |