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

Unified Diff: third_party/WebKit/public/platform/modules/websockets/websocket.mojom

Issue 2343433002: WebSocket Mojo API: set reason when disconnecting a WebSocket interface because of insufficient res… (Closed)
Patch Set: . Created 4 years, 3 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 | « third_party/WebKit/Source/modules/websockets/WebSocketHandleImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/platform/modules/websockets/websocket.mojom
diff --git a/third_party/WebKit/public/platform/modules/websockets/websocket.mojom b/third_party/WebKit/public/platform/modules/websockets/websocket.mojom
index be0d4cfd71a169cefb80eb251368961d28a71a3c..74e1973b3ab04282bc5f736a1bd6903417fbed07 100644
--- a/third_party/WebKit/public/platform/modules/websockets/websocket.mojom
+++ b/third_party/WebKit/public/platform/modules/websockets/websocket.mojom
@@ -96,6 +96,10 @@ interface WebSocketClient {
};
interface WebSocket {
+ // The client side may observe the following disconnection reason from the
+ // service side:
+ const uint32 kInsufficientResources = 1;
+
// Open new WebSocket connection to |socket_url|. |requested_protocols| is a
// list of tokens identifying sub-protocols the renderer would like to use,
// as described in RFC6455 "Subprotocols Using the WebSocket Protocol".
« no previous file with comments | « third_party/WebKit/Source/modules/websockets/WebSocketHandleImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698