tenfourfox/netwerk/protocol/websocket/PWebSocketEventListener.ipdl
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

52 lines
1.4 KiB
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set sw=2 ts=8 et tw=80 ft=cpp : */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
include protocol PNecko;
using mozilla::net::WebSocketFrameData from "ipc/IPCMessageUtils.h";
namespace mozilla {
namespace net {
async protocol PWebSocketEventListener
{
manager PNecko;
child:
WebSocketCreated(uint32_t awebSocketSerialID,
nsString aURI,
nsCString aProtocols);
WebSocketOpened(uint32_t awebSocketSerialID,
nsString aEffectiveURI,
nsCString aProtocols,
nsCString aExtensions);
WebSocketMessageAvailable(uint32_t awebSocketSerialID,
nsCString aData,
uint16_t aMessageType);
WebSocketClosed(uint32_t awebSocketSerialID,
bool aWasClean,
uint16_t aCode,
nsString aReason);
FrameReceived(uint32_t aWebSocketSerialID,
WebSocketFrameData aFrameData);
FrameSent(uint32_t aWebSocketSerialID,
WebSocketFrameData aFrameData);
__delete__();
parent:
Close();
};
} //namespace net
} //namespace mozilla