Backed out changeset b462e7b742d8 (bug 1908261) for causing multiple reftest failures...
[gecko.git] / dom / base / Nyx.h
blob566230355d6b5637b6b36d952dcc909900005e99
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
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef mozilla_dom_NyxFunctions
8 #define mozilla_dom_NyxFunctions
10 #include "mozilla/dom/TypedArray.h"
12 namespace mozilla::dom {
14 class GlobalObject;
16 class Nyx final {
17 public:
18 static void Log(const GlobalObject&, const nsACString& aMsg);
20 static bool IsEnabled(const GlobalObject&, const nsACString& aFuzzerName);
22 static bool IsReplay(const GlobalObject&);
24 static bool IsStarted(const GlobalObject&);
26 static void Start(const GlobalObject&);
28 static void Release(const GlobalObject&, uint32_t iterations = 1);
30 static void GetRawData(const GlobalObject&,
31 JS::MutableHandle<JSObject*> aRetval,
32 ErrorResult& aRv);
35 } // namespace mozilla::dom
37 #endif // mozilla_dom_NyxFunctions