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

Side by Side Diff: content/browser/renderer_host/websocket_host.h

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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void OnAddChannelRequest(const GURL& socket_url, 48 void OnAddChannelRequest(const GURL& socket_url,
49 const std::vector<std::string>& requested_protocols, 49 const std::vector<std::string>& requested_protocols,
50 const GURL& origin); 50 const GURL& origin);
51 51
52 void OnSendFrame(bool fin, 52 void OnSendFrame(bool fin,
53 WebSocketMessageType type, 53 WebSocketMessageType type,
54 const std::vector<char>& data); 54 const std::vector<char>& data);
55 55
56 void OnFlowControl(int64 quota); 56 void OnFlowControl(int64 quota);
57 57
58 void OnDropChannel(uint16 code, const std::string& reason); 58 void OnDropChannel(bool fail, uint16 code, const std::string& reason);
59 59
60 // The channel we use to send events to the network. 60 // The channel we use to send events to the network.
61 scoped_ptr<net::WebSocketChannel> channel_; 61 scoped_ptr<net::WebSocketChannel> channel_;
62 62
63 // The ID used to route messages. 63 // The ID used to route messages.
64 int routing_id_; 64 int routing_id_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(WebSocketHost); 66 DISALLOW_COPY_AND_ASSIGN(WebSocketHost);
67 }; 67 };
68 68
69 } // namespace content 69 } // namespace content
70 70
71 #endif // CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_ 71 #endif // CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698