2015-01-15 19:58:40 +03:00
|
|
|
/* 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 PBackground;
|
2015-01-15 19:58:41 +03:00
|
|
|
include protocol PBlob;
|
|
|
|
include DOMTypes;
|
2015-01-15 19:58:40 +03:00
|
|
|
|
2015-01-15 19:58:41 +03:00
|
|
|
using struct mozilla::SerializedStructuredCloneBuffer from "ipc/IPCMessageUtils.h";
|
|
|
|
|
2015-01-15 19:58:40 +03:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
|
|
|
// This protocol is used for the BroadcastChannel API
|
|
|
|
protocol PBroadcastChannel
|
|
|
|
{
|
|
|
|
manager PBackground;
|
|
|
|
|
|
|
|
parent:
|
2016-01-27 00:51:53 +03:00
|
|
|
async PostMessage(ClonedMessageData message);
|
|
|
|
async Close();
|
2015-01-15 19:58:40 +03:00
|
|
|
|
|
|
|
child:
|
2016-01-27 00:51:53 +03:00
|
|
|
async Notify(ClonedMessageData message);
|
|
|
|
async __delete__();
|
2015-01-15 19:58:40 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|