2015-03-26 03:16:21 +00:00
|
|
|
/* -*- 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 TerminateRequest
|
|
|
|
{
|
|
|
|
nsString sessionId;
|
|
|
|
};
|
|
|
|
|
2015-09-14 02:39:57 +00:00
|
|
|
union PresentationIPCRequest
|
2015-03-26 03:16:21 +00:00
|
|
|
{
|
|
|
|
StartSessionRequest;
|
|
|
|
SendSessionMessageRequest;
|
|
|
|
TerminateRequest;
|
|
|
|
};
|
|
|
|
|
|
|
|
sync protocol PPresentation
|
|
|
|
{
|
|
|
|
manager PContent;
|
|
|
|
manages PPresentationRequest;
|
|
|
|
|
|
|
|
child:
|
|
|
|
NotifyAvailableChange(bool aAvailable);
|
|
|
|
NotifySessionStateChange(nsString aSessionId, uint16_t aState);
|
|
|
|
NotifyMessage(nsString aSessionId, nsCString aData);
|
|
|
|
|
|
|
|
parent:
|
|
|
|
__delete__();
|
|
|
|
|
|
|
|
RegisterHandler();
|
|
|
|
UnregisterHandler();
|
|
|
|
|
|
|
|
RegisterSessionHandler(nsString aSessionId);
|
|
|
|
UnregisterSessionHandler(nsString aSessionId);
|
|
|
|
|
2015-09-14 02:39:57 +00:00
|
|
|
PPresentationRequest(PresentationIPCRequest aRequest);
|
2015-03-26 03:16:21 +00:00
|
|
|
|
|
|
|
NotifyReceiverReady(nsString aSessionId);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|