2018-07-10 02:02:39 +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;
|
|
|
|
|
2018-07-10 02:02:40 +03:00
|
|
|
include ClientIPCTypes;
|
|
|
|
include IPCServiceWorkerRegistrationDescriptor;
|
|
|
|
|
2018-07-10 02:02:39 +03:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
|
|
|
protocol PServiceWorkerContainer
|
|
|
|
{
|
|
|
|
manager PBackground;
|
|
|
|
|
|
|
|
parent:
|
|
|
|
async Teardown();
|
|
|
|
|
2018-07-10 02:02:40 +03:00
|
|
|
async Register(IPCClientInfo aClientInfo, nsCString aScopeURL, nsCString aScriptURL,
|
|
|
|
ServiceWorkerUpdateViaCache aUpdateViaCache)
|
|
|
|
returns (IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult);
|
|
|
|
|
2018-07-10 02:02:40 +03:00
|
|
|
async GetRegistration(IPCClientInfo aClientInfo, nsCString aURL)
|
|
|
|
returns (IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult);
|
|
|
|
|
2018-07-10 02:02:41 +03:00
|
|
|
async GetRegistrations(IPCClientInfo aClientInfo)
|
|
|
|
returns (IPCServiceWorkerRegistrationDescriptorListOrCopyableErrorResult aResult);
|
|
|
|
|
2018-07-10 02:02:41 +03:00
|
|
|
async GetReady(IPCClientInfo aClientInfo)
|
|
|
|
returns (IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult);
|
|
|
|
|
2018-07-10 02:02:39 +03:00
|
|
|
child:
|
|
|
|
async __delete__();
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|