2015-06-04 18:51:57 +00: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;
|
2017-03-28 09:48:38 +00:00
|
|
|
include protocol PServiceWorkerUpdater;
|
2015-06-04 18:51:57 +00:00
|
|
|
|
|
|
|
include PBackgroundSharedTypes;
|
|
|
|
include ServiceWorkerRegistrarTypes;
|
|
|
|
|
2017-01-12 16:38:48 +00:00
|
|
|
using mozilla::OriginAttributes from "mozilla/ipc/BackgroundUtils.h";
|
2015-06-04 18:51:57 +00:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
|
|
|
protocol PServiceWorkerManager
|
|
|
|
{
|
|
|
|
manager PBackground;
|
2017-03-28 09:48:38 +00:00
|
|
|
manages PServiceWorkerUpdater;
|
2015-06-04 18:51:57 +00:00
|
|
|
|
|
|
|
parent:
|
2016-01-26 21:51:53 +00:00
|
|
|
async Register(ServiceWorkerRegistrationData data);
|
2015-06-04 18:51:57 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async Unregister(PrincipalInfo principalInfo, nsString scope);
|
2015-06-04 18:51:57 +00:00
|
|
|
|
2017-01-12 16:38:48 +00:00
|
|
|
async PropagateSoftUpdate(OriginAttributes originAttributes,
|
2016-01-26 21:51:53 +00:00
|
|
|
nsString scope);
|
|
|
|
async PropagateUnregister(PrincipalInfo principalInfo, nsString scope);
|
2015-06-04 18:51:57 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async PropagateRemove(nsCString host);
|
2015-06-21 11:19:07 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async PropagateRemoveAll();
|
2015-06-21 11:17:58 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async Shutdown();
|
2015-06-04 18:51:57 +00:00
|
|
|
|
2017-03-28 09:48:38 +00:00
|
|
|
async PServiceWorkerUpdater(OriginAttributes originAttributes,
|
|
|
|
nsCString scope);
|
|
|
|
|
2015-06-04 18:51:57 +00:00
|
|
|
child:
|
2016-01-26 21:51:53 +00:00
|
|
|
async NotifyRegister(ServiceWorkerRegistrationData data);
|
2017-01-12 16:38:48 +00:00
|
|
|
async NotifySoftUpdate(OriginAttributes originAttributes, nsString scope);
|
2016-01-26 21:51:53 +00:00
|
|
|
async NotifyUnregister(PrincipalInfo principalInfo, nsString scope);
|
|
|
|
async NotifyRemove(nsCString host);
|
|
|
|
async NotifyRemoveAll();
|
2015-06-04 18:51:57 +00:00
|
|
|
|
2016-01-26 21:51:53 +00:00
|
|
|
async __delete__();
|
2015-06-04 18:51:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|