Index: net/spdy/spdy_proxy_client_socket.h |
diff --git a/net/spdy/spdy_proxy_client_socket.h b/net/spdy/spdy_proxy_client_socket.h |
index fc9cae21a1c211c6a246d13c6dfd5ae6f9b634c7..4c2fb8032de189e1bce7103bf04d1f56cec6b158 100644 |
--- a/net/spdy/spdy_proxy_client_socket.h |
+++ b/net/spdy/spdy_proxy_client_socket.h |
@@ -113,6 +113,10 @@ class NET_EXPORT_PRIVATE SpdyProxyClientSocket : public ProxyClientSocket, |
void LogBlockedTunnelResponse() const; |
+ // Calls |callback.Run(result)|. Used to post a callback for the message |
+ // loop to run later. |
+ void RunCallback(const CompletionCallback& callback, int result) const; |
+ |
void OnIOComplete(int result); |
int DoLoop(int last_io_result); |
@@ -165,8 +169,13 @@ class NET_EXPORT_PRIVATE SpdyProxyClientSocket : public ProxyClientSocket, |
const BoundNetLog net_log_; |
+ // The default weak pointer factory. |
base::WeakPtrFactory<SpdyProxyClientSocket> weak_factory_; |
+ // Only used for posting write callbacks. Weak pointers created by this |
+ // factory are invalidated in Disconnect(). |
+ base::WeakPtrFactory<SpdyProxyClientSocket> write_callback_weak_factory_; |
+ |
DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocket); |
}; |