2016-04-06 23:27:22 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* 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/. */
|
|
|
|
|
2018-01-27 00:08:59 +03:00
|
|
|
#ifndef mozilla_dom_serviceworkerunregisterjob_h
|
|
|
|
#define mozilla_dom_serviceworkerunregisterjob_h
|
2016-04-06 23:27:22 +03:00
|
|
|
|
|
|
|
#include "ServiceWorkerJob.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
|
2016-04-06 23:27:23 +03:00
|
|
|
class ServiceWorkerUnregisterJob final : public ServiceWorkerJob
|
2016-04-06 23:27:22 +03:00
|
|
|
{
|
|
|
|
public:
|
2016-04-06 23:27:23 +03:00
|
|
|
ServiceWorkerUnregisterJob(nsIPrincipal* aPrincipal,
|
|
|
|
const nsACString& aScope,
|
|
|
|
bool aSendToParent);
|
2016-04-06 23:27:22 +03:00
|
|
|
|
|
|
|
bool
|
|
|
|
GetResult() const;
|
|
|
|
|
|
|
|
private:
|
2016-05-03 21:44:40 +03:00
|
|
|
class PushUnsubscribeCallback;
|
|
|
|
|
2016-04-06 23:27:23 +03:00
|
|
|
virtual ~ServiceWorkerUnregisterJob();
|
2016-04-06 23:27:22 +03:00
|
|
|
|
|
|
|
virtual void
|
|
|
|
AsyncExecute() override;
|
|
|
|
|
2016-05-03 21:44:40 +03:00
|
|
|
void
|
|
|
|
Unregister();
|
|
|
|
|
2016-04-06 23:27:22 +03:00
|
|
|
bool mResult;
|
|
|
|
bool mSendToParent;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
2018-01-27 00:08:59 +03:00
|
|
|
#endif // mozilla_dom_serviceworkerunregisterjob_h
|