netwerk/protocol/websocket/PWebSocket.ipdl

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* vim: set sw=2 ts=8 et tw=80 ft=cpp : */
michael@0 3
michael@0 4 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 5 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 7
michael@0 8 include protocol PNecko;
michael@0 9 include protocol PBrowser;
michael@0 10 include InputStreamParams;
michael@0 11 include URIParams;
michael@0 12
michael@0 13 include protocol PBlob; //FIXME: bug #792908
michael@0 14
michael@0 15 using class IPC::SerializedLoadContext from "SerializedLoadContext.h";
michael@0 16
michael@0 17 namespace mozilla {
michael@0 18 namespace net {
michael@0 19
michael@0 20 async protocol PWebSocket
michael@0 21 {
michael@0 22 manager PNecko;
michael@0 23
michael@0 24 parent:
michael@0 25 // Forwarded methods corresponding to methods on nsIWebSocketChannel
michael@0 26 AsyncOpen(URIParams aURI,
michael@0 27 nsCString aOrigin,
michael@0 28 nsCString aProtocol,
michael@0 29 bool aSecure,
michael@0 30 // ping values only meaningful if client set them
michael@0 31 uint32_t aPingInterval,
michael@0 32 bool aClientSetPingInterval,
michael@0 33 uint32_t aPingTimeout,
michael@0 34 bool aClientSetPingTimeout);
michael@0 35 Close(uint16_t code, nsCString reason);
michael@0 36 SendMsg(nsCString aMsg);
michael@0 37 SendBinaryMsg(nsCString aMsg);
michael@0 38 SendBinaryStream(InputStreamParams aStream, uint32_t aLength);
michael@0 39
michael@0 40 DeleteSelf();
michael@0 41
michael@0 42 child:
michael@0 43 // Forwarded notifications corresponding to the nsIWebSocketListener interface
michael@0 44 OnStart(nsCString aProtocol, nsCString aExtensions);
michael@0 45 OnStop(nsresult aStatusCode);
michael@0 46 OnMessageAvailable(nsCString aMsg);
michael@0 47 OnBinaryMessageAvailable(nsCString aMsg);
michael@0 48 OnAcknowledge(uint32_t aSize);
michael@0 49 OnServerClose(uint16_t code, nsCString aReason);
michael@0 50
michael@0 51 __delete__();
michael@0 52
michael@0 53 };
michael@0 54
michael@0 55 } //namespace net
michael@0 56 } //namespace mozilla

mercurial