Bumping gaia.json for 4 gaia revision(s) a=gaia-bump
[gecko.git] / dom / workers / ServiceWorkerClient.cpp
blob2a2e1c28b3e06fed4676746dc5a4fbaee42be761
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
5 */
7 #include "ServiceWorkerClient.h"
9 #include "mozilla/dom/ServiceWorkerClientBinding.h"
11 using namespace mozilla::dom;
12 using namespace mozilla::dom::workers;
14 NS_IMPL_CYCLE_COLLECTION_WRAPPERCACHE(ServiceWorkerClient, mOwner)
16 NS_IMPL_CYCLE_COLLECTING_ADDREF(ServiceWorkerClient)
17 NS_IMPL_CYCLE_COLLECTING_RELEASE(ServiceWorkerClient)
19 NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(ServiceWorkerClient)
20 NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
21 NS_INTERFACE_MAP_ENTRY(nsISupports)
22 NS_INTERFACE_MAP_END
24 JSObject*
25 ServiceWorkerClient::WrapObject(JSContext* aCx)
27 return ServiceWorkerClientBinding::Wrap(aCx, this);