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 IPCServiceWorkerRegistrationDescriptor;
|
|
|
|
|
2018-07-10 02:02:39 +03:00
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
|
|
|
protocol PServiceWorkerRegistration
|
|
|
|
{
|
|
|
|
manager PBackground;
|
|
|
|
|
|
|
|
parent:
|
|
|
|
async Teardown();
|
|
|
|
|
2018-07-10 02:02:40 +03:00
|
|
|
async Unregister() returns (bool aSuccess, CopyableErrorResult aRv);
|
2020-01-08 06:21:27 +03:00
|
|
|
async Update(nsCString aNewestWorkerScriptUrl) returns (
|
|
|
|
IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult);
|
2018-07-10 02:02:40 +03:00
|
|
|
|
2018-07-10 02:02:39 +03:00
|
|
|
child:
|
|
|
|
async __delete__();
|
2018-07-10 02:02:40 +03:00
|
|
|
|
|
|
|
async UpdateState(IPCServiceWorkerRegistrationDescriptor aDescriptor);
|
2018-11-30 02:06:32 +03:00
|
|
|
async FireUpdateFound();
|
2018-07-10 02:02:39 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|