Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(844)

Unified Diff: content/child/websocket_bridge.cc

Issue 153843004: [WebSocket] Send (request|response)_headers_text to the inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/websocket_host.cc ('k') | content/common/websocket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/websocket_bridge.cc
diff --git a/content/child/websocket_bridge.cc b/content/child/websocket_bridge.cc
index c8e74ef9b436c6cbd70181c0cd6052cdbbe0e94e..2721017fb7b00ee0b5c1072039a270e6518cba2a 100644
--- a/content/child/websocket_bridge.cc
+++ b/content/child/websocket_bridge.cc
@@ -104,6 +104,7 @@ void WebSocketBridge::DidStartOpeningHandshake(
request_to_pass.addHeaderField(WebString::fromLatin1(header.first),
WebString::fromLatin1(header.second));
}
+ request_to_pass.setHeadersText(WebString::fromLatin1(request.headers_text));
client_->didStartOpeningHandshake(this, request_to_pass);
}
@@ -120,6 +121,7 @@ void WebSocketBridge::DidFinishOpeningHandshake(
response_to_pass.addHeaderField(WebString::fromLatin1(header.first),
WebString::fromLatin1(header.second));
}
+ response_to_pass.setHeadersText(WebString::fromLatin1(response.headers_text));
client_->didFinishOpeningHandshake(this, response_to_pass);
}
« no previous file with comments | « content/browser/renderer_host/websocket_host.cc ('k') | content/common/websocket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698