Nyx.h (1077B)
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/. */ 6 7 #ifndef mozilla_dom_NyxFunctions 8 #define mozilla_dom_NyxFunctions 9 10 #include "mozilla/dom/TypedArray.h" 11 12 namespace mozilla::dom { 13 14 class GlobalObject; 15 16 class Nyx final { 17 public: 18 static void Log(const GlobalObject&, const nsACString& aMsg); 19 20 static bool IsEnabled(const GlobalObject&, const nsACString& aFuzzerName); 21 22 static bool IsReplay(const GlobalObject&); 23 24 static bool IsStarted(const GlobalObject&); 25 26 static void Start(const GlobalObject&); 27 28 static void Release(const GlobalObject&, uint32_t iterations = 1); 29 30 static void GetRawData(const GlobalObject&, 31 JS::MutableHandle<JSObject*> aRetval, 32 ErrorResult& aRv); 33 }; 34 35 } // namespace mozilla::dom 36 37 #endif // mozilla_dom_NyxFunctions