Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / net / tools / quic / quic_client.h
index 13aff63..a4fb6c3 100644 (file)
@@ -135,8 +135,6 @@ class QuicClient : public EpollCallbackInterface,
 
   const IPEndPoint& client_address() const { return client_address_; }
 
-  EpollServer* epoll_server() { return epoll_server_; }
-
   int fd() { return fd_; }
 
   const QuicServerId& server_id() const { return server_id_; }
@@ -184,6 +182,9 @@ class QuicClient : public EpollCallbackInterface,
                          IPEndPoint* server_address,
                          IPAddressNumber* client_ip);
 
+  EpollServer* epoll_server() { return epoll_server_; }
+  QuicConfig* config() { return &config_; }
+
  private:
   friend class net::tools::test::QuicClientPeer;
 
@@ -213,6 +214,10 @@ class QuicClient : public EpollCallbackInterface,
   // Local port to bind to. Initialize to 0.
   int local_port_;
 
+  // Writer used to actually send packets to the wire. Needs to outlive
+  // |session_|.
+  scoped_ptr<QuicPacketWriter> writer_;
+
   // Session which manages streams.
   scoped_ptr<QuicClientSession> session_;
   // Listens for events on the client socket.
@@ -226,9 +231,6 @@ class QuicClient : public EpollCallbackInterface,
   // Listens for full responses.
   scoped_ptr<ResponseListener> response_listener_;
 
-  // Writer used to actually send packets to the wire.
-  scoped_ptr<QuicPacketWriter> writer_;
-
   // Tracks if the client is initialized to connect.
   bool initialized_;