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

Side by Side Diff: mojo/services/network/interfaces/web_socket.mojom

Issue 1741963002: Auto-formatted all .mojom files. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 9
10 interface WebSocket { 10 interface WebSocket {
11 enum MessageType { 11 enum MessageType {
12 CONTINUATION, 12 CONTINUATION,
13 TEXT, 13 TEXT,
14 BINARY 14 BINARY,
15 }; 15 };
16 const uint16 kAbnormalCloseCode = 1006; // stolen from websocket_bridge 16 const uint16 kAbnormalCloseCode = 1006; // stolen from websocket_bridge
17 17
18 // Initiates a WebSocket connection to the given url. |send_stream| is a data 18 // Initiates a WebSocket connection to the given url. |send_stream| is a data
19 // pipe which should remain open for the lifetime of the WebSocket. Data 19 // pipe which should remain open for the lifetime of the WebSocket. Data
20 // to send over the WebSocket should be written to the producer end of the 20 // to send over the WebSocket should be written to the producer end of the
21 // |send_stream|. 21 // |send_stream|.
22 Connect(string url, 22 Connect(string url,
23 array<string> protocols, 23 array<string> protocols,
24 string origin, 24 string origin,
(...skipping 26 matching lines...) Expand all
51 DidFail(string message); 51 DidFail(string message);
52 52
53 DidClose(bool was_clean, uint16 code, string reason); 53 DidClose(bool was_clean, uint16 code, string reason);
54 54
55 // Blink has 3 extra methods that we don't implement, because they are used 55 // Blink has 3 extra methods that we don't implement, because they are used
56 // for the inspector: 56 // for the inspector:
57 // didStartOpeningHandshake 57 // didStartOpeningHandshake
58 // didFinishOpeningHandshake 58 // didFinishOpeningHandshake
59 // didStartClosingHandshake 59 // didStartClosingHandshake
60 }; 60 };
OLDNEW
« no previous file with comments | « mojo/services/network/interfaces/url_loader_interceptor.mojom ('k') | mojo/services/nfc/interfaces/nfc.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698