netwerk/protocol/websocket/PWebSocket.ipdl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/protocol/websocket/PWebSocket.ipdl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* vim: set sw=2 ts=8 et tw=80 ft=cpp : */
     1.6 +
     1.7 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
    1.10 +
    1.11 +include protocol PNecko;
    1.12 +include protocol PBrowser;
    1.13 +include InputStreamParams;
    1.14 +include URIParams;
    1.15 +
    1.16 +include protocol PBlob; //FIXME: bug #792908
    1.17 +
    1.18 +using class IPC::SerializedLoadContext from "SerializedLoadContext.h";
    1.19 +
    1.20 +namespace mozilla {
    1.21 +namespace net {
    1.22 +
    1.23 +async protocol PWebSocket
    1.24 +{
    1.25 +  manager PNecko;
    1.26 +
    1.27 +parent:
    1.28 +  // Forwarded methods corresponding to methods on nsIWebSocketChannel
    1.29 +  AsyncOpen(URIParams aURI,
    1.30 +            nsCString aOrigin,
    1.31 +            nsCString aProtocol,
    1.32 +            bool aSecure,
    1.33 +            // ping values only meaningful if client set them
    1.34 +            uint32_t aPingInterval,
    1.35 +            bool aClientSetPingInterval,
    1.36 +            uint32_t aPingTimeout,
    1.37 +            bool aClientSetPingTimeout);
    1.38 +  Close(uint16_t code, nsCString reason);
    1.39 +  SendMsg(nsCString aMsg);
    1.40 +  SendBinaryMsg(nsCString aMsg);
    1.41 +  SendBinaryStream(InputStreamParams aStream, uint32_t aLength);
    1.42 +
    1.43 +  DeleteSelf();
    1.44 +
    1.45 +child:
    1.46 +  // Forwarded notifications corresponding to the nsIWebSocketListener interface
    1.47 +  OnStart(nsCString aProtocol, nsCString aExtensions);
    1.48 +  OnStop(nsresult aStatusCode);
    1.49 +  OnMessageAvailable(nsCString aMsg);
    1.50 +  OnBinaryMessageAvailable(nsCString aMsg);
    1.51 +  OnAcknowledge(uint32_t aSize);
    1.52 +  OnServerClose(uint16_t code, nsCString aReason);
    1.53 +
    1.54 +  __delete__();
    1.55 +
    1.56 +};
    1.57 +
    1.58 +} //namespace net
    1.59 +} //namespace mozilla

mercurial