diff options
author | yhirano@chromium.org <yhirano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-22 14:34:22 +0000 |
---|---|---|
committer | yhirano@chromium.org <yhirano@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-22 14:34:22 +0000 |
commit | cd48ed1132963227813901fabe0e2270b9761527 (patch) | |
tree | 9aa0b793d42bd1172f0b0fca33cf02d10fcc09ae /net/websockets/websocket_handshake_stream_create_helper.cc | |
parent | e5c03a0add358c8a5526e158035e5808fe482a7e (diff) | |
download | chromium_src-cd48ed1132963227813901fabe0e2270b9761527.zip chromium_src-cd48ed1132963227813901fabe0e2270b9761527.tar.gz chromium_src-cd48ed1132963227813901fabe0e2270b9761527.tar.bz2 |
Notify WebSocket opening handshake information to the renderer.
In order to show the information in the inspector, notify the handshake
request and response information to the renderer.
Currently the browser always send the notification to the renderer.
It should be fixed in the future.
BUG=310405
R=ricea@chromium.org
Review URL: https://codereview.chromium.org/115003003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246319 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/websockets/websocket_handshake_stream_create_helper.cc')
-rw-r--r-- | net/websockets/websocket_handshake_stream_create_helper.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/websockets/websocket_handshake_stream_create_helper.cc b/net/websockets/websocket_handshake_stream_create_helper.cc index 8f1060c..8268cda 100644 --- a/net/websockets/websocket_handshake_stream_create_helper.cc +++ b/net/websockets/websocket_handshake_stream_create_helper.cc @@ -14,9 +14,11 @@ namespace net { WebSocketHandshakeStreamCreateHelper::WebSocketHandshakeStreamCreateHelper( + WebSocketStream::ConnectDelegate* connect_delegate, const std::vector<std::string>& requested_subprotocols) : requested_subprotocols_(requested_subprotocols), - stream_(NULL) {} + stream_(NULL), + connect_delegate_(connect_delegate) {} WebSocketHandshakeStreamCreateHelper::~WebSocketHandshakeStreamCreateHelper() {} @@ -26,6 +28,7 @@ WebSocketHandshakeStreamCreateHelper::CreateBasicStream( bool using_proxy) { return stream_ = new WebSocketBasicHandshakeStream(connection.Pass(), + connect_delegate_, using_proxy, requested_subprotocols_, std::vector<std::string>()); |