Index: net/tools/quic/quic_client.h |
diff --git a/net/tools/quic/quic_client.h b/net/tools/quic/quic_client.h |
index da934ff7f1974e657f350fd61ef06a382110d790..313ba9cd7a83e17fdc51ca6c97e203526b8f2469 100644 |
--- a/net/tools/quic/quic_client.h |
+++ b/net/tools/quic/quic_client.h |
@@ -47,15 +47,19 @@ class QuicClient : public EpollCallbackInterface, |
const string& response_body) = 0; |
}; |
+ // Create a quic client, which will have events managed by an externally owned |
+ // EpollServer. |
QuicClient(IPEndPoint server_address, |
const QuicServerId& server_id, |
const QuicVersionVector& supported_versions, |
- bool print_response); |
+ bool print_response, |
+ EpollServer* epoll_server); |
QuicClient(IPEndPoint server_address, |
const QuicServerId& server_id, |
const QuicVersionVector& supported_versions, |
bool print_response, |
- const QuicConfig& config); |
+ const QuicConfig& config, |
+ EpollServer* epoll_server); |
virtual ~QuicClient(); |
@@ -131,7 +135,7 @@ class QuicClient : public EpollCallbackInterface, |
const IPEndPoint& client_address() const { return client_address_; } |
- EpollServer* epoll_server() { return &epoll_server_; } |
+ EpollServer* epoll_server() { return epoll_server_; } |
int fd() { return fd_; } |
@@ -208,7 +212,7 @@ class QuicClient : public EpollCallbackInterface, |
// Session which manages streams. |
scoped_ptr<QuicClientSession> session_; |
// Listens for events on the client socket. |
- EpollServer epoll_server_; |
+ EpollServer* epoll_server_; |
// UDP socket. |
int fd_; |