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

Unified Diff: content/browser/renderer_host/websocket_dispatcher_host.cc

Issue 34753008: Notify WebSocket connection failure, chromium side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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 | « no previous file | content/browser/renderer_host/websocket_host.h » ('j') | content/child/websocket_bridge.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/websocket_dispatcher_host.cc
diff --git a/content/browser/renderer_host/websocket_dispatcher_host.cc b/content/browser/renderer_host/websocket_dispatcher_host.cc
index 902664e909762ebd96dff94cb909cf0802ffd916..e6e66ed51b4f80fbf39f151463f3382f3d3b86af 100644
--- a/content/browser/renderer_host/websocket_dispatcher_host.cc
+++ b/content/browser/renderer_host/websocket_dispatcher_host.cc
@@ -110,7 +110,9 @@ void WebSocketDispatcherHost::SendClosing(int routing_id) {
void WebSocketDispatcherHost::DoDropChannel(int routing_id,
uint16 code,
const std::string& reason) {
- SendOrDrop(new WebSocketMsg_DropChannel(routing_id, code, reason));
+ // TODO(yhirano): Set |was_clean| appropriately.
+ bool was_clean = true;
+ SendOrDrop(new WebSocketMsg_DropChannel(routing_id, was_clean, code, reason));
DeleteWebSocketHost(routing_id);
}
« no previous file with comments | « no previous file | content/browser/renderer_host/websocket_host.h » ('j') | content/child/websocket_bridge.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698