Generated file
Copy as Markdown
Other Tools
/* THIS FILE IS AUTOGENERATED FROM WAICTManifest.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_WAICTMANIFESTBINDING_H_
#define DOM_WAICTMANIFESTBINDING_H_
#include "js/CallAndConstruct.h"
#include "js/RootingAPI.h"
#include "js/TypeDecls.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/Nullable.h"
#include "mozilla/dom/Record.h"
namespace mozilla {
namespace dom {
struct NativePropertyHooks;
class ProtoAndIfaceCache;
struct WAICTManifestAtoms;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct WAICTManifest : public MaybeEmptyDictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR Optional<Sequence<nsCString>> mAny_hashes;
MOZ_INIT_OUTSIDE_CTOR Optional<nsCString> mBt_server;
MOZ_INIT_OUTSIDE_CTOR Optional<Record<nsCString, nsCString>> mHashes;
MOZ_INIT_OUTSIDE_CTOR Optional<nsCString> mResource_delimiter;
MOZ_INIT_OUTSIDE_CTOR Optional<nsCString> mTransparency_proof;
WAICTManifest();
explicit inline WAICTManifest(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
WAICTManifest(WAICTManifest&& aOther) = default;
private:
WAICTManifest(const WAICTManifest&) = delete;
WAICTManifest& operator=(const WAICTManifest&) = delete;
static bool
InitIds(JSContext* cx, WAICTManifestAtoms* atomsCache);
public:
bool
Init(BindingCallContext& cx, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
bool
Init(JSContext* cx_, JS::Handle<JS::Value> val, const char* sourceDescription = "Value", bool passedToJSImpl = false);
bool
Init(const nsAString& aJSON);
bool
Init(const nsACString& aJSON);
void
TraceDictionary(JSTracer* trc);
};
namespace binding_detail {
struct FastWAICTManifest : public WAICTManifest
{
inline FastWAICTManifest()
: WAICTManifest(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_WAICTMANIFESTBINDING_H_