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

Unified Diff: mojo/services/network/public/interfaces/web_socket.mojom

Issue 1873463003: Remove mojo network service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: mojo/services/network/public/interfaces/web_socket.mojom
diff --git a/mojo/services/network/public/interfaces/web_socket.mojom b/mojo/services/network/public/interfaces/web_socket.mojom
deleted file mode 100644
index 5d309973807a1d818d087dceda690baa393b119a..0000000000000000000000000000000000000000
--- a/mojo/services/network/public/interfaces/web_socket.mojom
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-module mojo;
-
-import "network/public/interfaces/network_error.mojom";
-
-interface WebSocket {
- enum MessageType {
- CONTINUATION,
- TEXT,
- BINARY
- };
- const uint16 kAbnormalCloseCode = 1006; // stolen from websocket_bridge
-
- // Initiates a WebSocket connection to the given url. |send_stream| is a data
- // pipe which should remain open for the lifetime of the WebSocket. Data
- // to send over the WebSocket should be written to the producer end of the
- // |send_stream|.
- Connect(string url,
- array<string> protocols,
- string origin,
- handle<data_pipe_consumer> send_stream,
- WebSocketClient client);
-
- // Called after writing |num_bytes| worth of data to the WebSocket's
- // |send_stream|.
- Send(bool fin, MessageType type, uint32 num_bytes);
-
- FlowControl(int64 quota);
-
- Close(uint16 code, string reason);
-};
-
-interface WebSocketClient {
- // Called in response to a WebSocket.Connect call to indicate success
- // |receive_stream| is a data pipe which where incoming data from
- // the server is written.
- DidConnect(string selected_subprotocol,
- string extensions,
- handle<data_pipe_consumer> receive_stream);
-
- // Called when there is |num_bytes| worth of incoming data available on the
- // |receive_stream|.
- DidReceiveData(bool fin, WebSocket.MessageType type, uint32 num_bytes);
-
- DidReceiveFlowControl(int64 quota);
-
- DidFail(string message);
-
- DidClose(bool was_clean, uint16 code, string reason);
-
- // Blink has 3 extra methods that we don't implement, because they are used
- // for the inspector:
- // didStartOpeningHandshake
- // didFinishOpeningHandshake
- // didStartClosingHandshake
-};

Powered by Google App Engine
This is Rietveld 408576698