diff options
Diffstat (limited to 'net/socket/client_socket_pool_base.h')
-rw-r--r-- | net/socket/client_socket_pool_base.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/net/socket/client_socket_pool_base.h b/net/socket/client_socket_pool_base.h index fe18ff2..318cab8 100644 --- a/net/socket/client_socket_pool_base.h +++ b/net/socket/client_socket_pool_base.h @@ -42,8 +42,8 @@ #include "net/base/net_log.h" #include "net/base/network_change_notifier.h" #include "net/base/request_priority.h" -#include "net/socket/client_socket.h" #include "net/socket/client_socket_pool.h" +#include "net/socket/stream_socket.h" namespace net { @@ -89,7 +89,7 @@ class ConnectJob { // Releases |socket_| to the client. On connection error, this should return // NULL. - ClientSocket* ReleaseSocket() { return socket_.release(); } + StreamSocket* ReleaseSocket() { return socket_.release(); } // Begins connecting the socket. Returns OK on success, ERR_IO_PENDING if it // cannot complete synchronously without blocking, or another net error code @@ -113,8 +113,8 @@ class ConnectJob { const BoundNetLog& net_log() const { return net_log_; } protected: - void set_socket(ClientSocket* socket); - ClientSocket* socket() { return socket_.get(); } + void set_socket(StreamSocket* socket); + StreamSocket* socket() { return socket_.get(); } void NotifyDelegateOfCompletion(int rv); void ResetTimer(base::TimeDelta remainingTime); @@ -138,7 +138,7 @@ class ConnectJob { // Timer to abort jobs that take too long. base::OneShotTimer<ConnectJob> timer_; Delegate* delegate_; - scoped_ptr<ClientSocket> socket_; + scoped_ptr<StreamSocket> socket_; BoundNetLog net_log_; // A ConnectJob is idle until Connect() has been called. bool idle_; @@ -236,7 +236,7 @@ class ClientSocketPoolBaseHelper // See ClientSocketPool::ReleaseSocket for documentation on this function. void ReleaseSocket(const std::string& group_name, - ClientSocket* socket, + StreamSocket* socket, int id); // See ClientSocketPool::Flush for documentation on this function. @@ -314,7 +314,7 @@ class ClientSocketPoolBaseHelper // socket for a new request. bool ShouldCleanup(base::TimeTicks now, base::TimeDelta timeout) const; - ClientSocket* socket; + StreamSocket* socket; base::TimeTicks start_time; }; @@ -445,7 +445,7 @@ class ClientSocketPoolBaseHelper void ProcessPendingRequest(const std::string& group_name, Group* group); // Assigns |socket| to |handle| and updates |group|'s counters appropriately. - void HandOutSocket(ClientSocket* socket, + void HandOutSocket(StreamSocket* socket, bool reused, ClientSocketHandle* handle, base::TimeDelta time_idle, @@ -453,7 +453,7 @@ class ClientSocketPoolBaseHelper const BoundNetLog& net_log); // Adds |socket| to the list of idle sockets for |group|. - void AddIdleSocket(ClientSocket* socket, Group* group); + void AddIdleSocket(StreamSocket* socket, Group* group); // Iterates through |group_map_|, canceling all ConnectJobs and deleting // groups if they are no longer needed. @@ -655,7 +655,7 @@ class ClientSocketPoolBase { return helper_.CancelRequest(group_name, handle); } - void ReleaseSocket(const std::string& group_name, ClientSocket* socket, + void ReleaseSocket(const std::string& group_name, StreamSocket* socket, int id) { return helper_.ReleaseSocket(group_name, socket, id); } |