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

Side by Side Diff: mojo/services/network/public/interfaces/http_connection.mojom

Issue 1144843002: Mojo service implementation for HTTP server - part 3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase & resolve Created 5 years, 7 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
« no previous file with comments | « mojo/services/network/http_server_apptest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 module mojo; 5 module mojo;
6 6
7 import "network/public/interfaces/http_message.mojom"; 7 import "network/public/interfaces/http_message.mojom";
8 import "network/public/interfaces/network_error.mojom"; 8 import "network/public/interfaces/network_error.mojom";
9 import "network/public/interfaces/web_socket.mojom"; 9 import "network/public/interfaces/web_socket.mojom";
10 10
(...skipping 10 matching lines...) Expand all
21 OnReceivedRequest(HttpRequest request) => (HttpResponse response); 21 OnReceivedRequest(HttpRequest request) => (HttpResponse response);
22 22
23 // Called when an WebSocket request is received. 23 // Called when an WebSocket request is received.
24 // 24 //
25 // If the delegate decides to accept the request, it should respond with 25 // If the delegate decides to accept the request, it should respond with
26 // non-null arguments in the callback. |send_stream| is a data pipe which 26 // non-null arguments in the callback. |send_stream| is a data pipe which
27 // should remain open for the lifetime of the WebSocket. Data to send over the 27 // should remain open for the lifetime of the WebSocket. Data to send over the
28 // WebSocket should be written to the producer end of the |send_stream|. 28 // WebSocket should be written to the producer end of the |send_stream|.
29 // |web_socket| will be already connected. There is no need to call Connect() 29 // |web_socket| will be already connected. There is no need to call Connect()
30 // on it. But |client| will still receive a DidConnect() notification. 30 // on it. But |client| will still receive a DidConnect() notification.
31 //
32 // NOTE: WebSocket server support is not fully implemented. For now the
33 // following are not supported:
34 // - negotiating subprotocol or extension;
35 // - fragmented or non-text messages;
36 // - failure or close notification;
37 // - flow control.
31 OnReceivedWebSocketRequest(HttpRequest request) 38 OnReceivedWebSocketRequest(HttpRequest request)
32 => (WebSocket&? web_socket, 39 => (WebSocket&? web_socket,
33 handle<data_pipe_consumer>? send_stream, 40 handle<data_pipe_consumer>? send_stream,
34 WebSocketClient? client); 41 WebSocketClient? client);
35 }; 42 };
OLDNEW
« no previous file with comments | « mojo/services/network/http_server_apptest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698