diff options
author | ricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-14 02:14:44 +0000 |
---|---|---|
committer | ricea@chromium.org <ricea@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-14 02:14:44 +0000 |
commit | 831e4a3102c7ad705d69386e52981c66a4ba0ccd (patch) | |
tree | f5f0e687cbe554caa6f7da3341fe1ff09a055660 /net/http/http_transaction.h | |
parent | 993bd9bd5c7e6f7505b6f6cfe852f9d3e6f67e76 (diff) | |
download | chromium_src-831e4a3102c7ad705d69386e52981c66a4ba0ccd.zip chromium_src-831e4a3102c7ad705d69386e52981c66a4ba0ccd.tar.gz chromium_src-831e4a3102c7ad705d69386e52981c66a4ba0ccd.tar.bz2 |
Add a SetWebSocketHandshakeStreamFactory() method to the HttpTransaction base class so that
URLRequestHttpJob can pass through the WebSocketHandshakeStreamBase::Factory object.
Implement OnWebSocketHandshakeStreamReady().
BUG=315027
TEST=net_unittests
Review URL: https://codereview.chromium.org/23856018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@235016 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_transaction.h')
-rw-r--r-- | net/http/http_transaction.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/http/http_transaction.h b/net/http/http_transaction.h index d440500..849d03a 100644 --- a/net/http/http_transaction.h +++ b/net/http/http_transaction.h @@ -10,6 +10,7 @@ #include "net/base/net_export.h" #include "net/base/request_priority.h" #include "net/base/upload_progress.h" +#include "net/websockets/websocket_handshake_stream_base.h" namespace net { @@ -134,6 +135,12 @@ class NET_EXPORT_PRIVATE HttpTransaction { // Called when the priority of the parent job changes. virtual void SetPriority(RequestPriority priority) = 0; + + // Set the WebSocketHandshakeStreamBase::CreateHelper to be used for the + // request. Only relevant to WebSocket transactions. Must be called before + // Start(). Ownership of |create_helper| remains with the caller. + virtual void SetWebSocketHandshakeStreamCreateHelper( + WebSocketHandshakeStreamBase::CreateHelper* create_helper) = 0; }; } // namespace net |