tenfourfox/dom/presentation/ipc/PPresentation.ipdl
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

76 lines
1.6 KiB
C++

/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set sw=2 ts=8 et 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 PContent;
include protocol PPresentationRequest;
include InputStreamParams;
namespace mozilla {
namespace dom {
struct StartSessionRequest
{
nsString url;
nsString sessionId;
nsString origin;
};
struct SendSessionMessageRequest
{
nsString sessionId;
InputStreamParams data;
};
struct CloseSessionRequest
{
nsString sessionId;
};
struct TerminateSessionRequest
{
nsString sessionId;
};
union PresentationIPCRequest
{
StartSessionRequest;
SendSessionMessageRequest;
CloseSessionRequest;
TerminateSessionRequest;
};
sync protocol PPresentation
{
manager PContent;
manages PPresentationRequest;
child:
NotifyAvailableChange(bool aAvailable);
NotifySessionStateChange(nsString aSessionId, uint16_t aState);
NotifyMessage(nsString aSessionId, nsCString aData);
NotifySessionConnect(uint64_t aWindowId, nsString aSessionId);
parent:
__delete__();
RegisterAvailabilityHandler();
UnregisterAvailabilityHandler();
RegisterSessionHandler(nsString aSessionId);
UnregisterSessionHandler(nsString aSessionId);
RegisterRespondingHandler(uint64_t aWindowId);
UnregisterRespondingHandler(uint64_t aWindowId);
PPresentationRequest(PresentationIPCRequest aRequest);
NotifyReceiverReady(nsString aSessionId);
};
} // namespace dom
} // namespace mozilla