1 /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
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/. */
6 #ifndef mozilla_dom_workers_performance_h__
7 #define mozilla_dom_workers_performance_h__
9 #include "nsWrapperCache.h"
10 #include "js/TypeDecls.h"
12 #include "nsISupportsImpl.h"
13 #include "nsCycleCollectionParticipant.h"
15 BEGIN_WORKERS_NAMESPACE
19 class Performance MOZ_FINAL
: public nsWrapperCache
22 NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(Performance
)
23 NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(Performance
)
25 explicit Performance(WorkerPrivate
* aWorkerPrivate
);
30 WorkerPrivate
* mWorkerPrivate
;
34 WrapObject(JSContext
* aCx
) MOZ_OVERRIDE
;
37 GetParentObject() const
39 // There's only one global on a worker, so we don't need to specify.
43 // WebIDL (public APIs)
49 #endif // mozilla_dom_workers_performance_h__