Line data Source code
1 : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 : /* This Source Code Form is subject to the terms of the Mozilla Public
4 : * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 : * You can obtain one at http://mozilla.org/MPL/2.0/. */
6 :
7 : #include "ServiceWorkerUpdaterParent.h"
8 : #include "ServiceWorkerManagerService.h"
9 :
10 : namespace mozilla {
11 : namespace dom {
12 : namespace workers {
13 :
14 : bool
15 0 : ServiceWorkerUpdaterParent::Proceed(ServiceWorkerManagerService* aService)
16 : {
17 0 : if (!SendProceed(true)) {
18 0 : return false;
19 : }
20 :
21 0 : mService = aService;
22 0 : return true;
23 : }
24 :
25 : void
26 0 : ServiceWorkerUpdaterParent::ActorDestroy(ActorDestroyReason aWhy)
27 : {
28 0 : if (mService) {
29 0 : mService->UpdaterActorDestroyed(this);
30 : }
31 0 : }
32 :
33 : } // namespace workers
34 : } // namespace dom
35 : } // namespace mozilla
|