| OLD | NEW |
| 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 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
| 6 module mojo; | 6 module mojo; |
| 7 | 7 |
| 8 import "mojo/public/interfaces/network/network_error.mojom"; | 8 import "mojo/public/interfaces/network/network_error.mojom"; |
| 9 import "network/interfaces/http_message.mojom"; | 9 import "network/interfaces/http_message.mojom"; |
| 10 import "network/interfaces/web_socket.mojom"; | 10 import "network/interfaces/web_socket.mojom"; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // WebSocket should be written to the producer end of the |send_stream|. | 29 // WebSocket should be written to the producer end of the |send_stream|. |
| 30 // |web_socket| will be already connected. There is no need to call Connect() | 30 // |web_socket| will be already connected. There is no need to call Connect() |
| 31 // on it. But |client| will still receive a DidConnect() notification. | 31 // on it. But |client| will still receive a DidConnect() notification. |
| 32 // | 32 // |
| 33 // NOTE: WebSocket server support is not fully implemented. For now the | 33 // NOTE: WebSocket server support is not fully implemented. For now the |
| 34 // following are not supported: | 34 // following are not supported: |
| 35 // - negotiating subprotocol or extension; | 35 // - negotiating subprotocol or extension; |
| 36 // - fragmented or non-text messages; | 36 // - fragmented or non-text messages; |
| 37 // - failure or close notification; | 37 // - failure or close notification; |
| 38 // - flow control. | 38 // - flow control. |
| 39 OnReceivedWebSocketRequest(HttpRequest request) | 39 OnReceivedWebSocketRequest(HttpRequest request) => (WebSocket&? web_socket, ha
ndle<data_pipe_consumer>? send_stream, WebSocketClient? client); |
| 40 => (WebSocket&? web_socket, | |
| 41 handle<data_pipe_consumer>? send_stream, | |
| 42 WebSocketClient? client); | |
| 43 }; | 40 }; |
| OLD | NEW |