Copy as Markdown

Other Tools

/* THIS FILE IS AUTOGENERATED FROM StripOnShareRule.webidl BY Codegen.py - DO NOT EDIT */
#ifndef DOM_STRIPONSHARERULEBINDING_H_
#define DOM_STRIPONSHARERULEBINDING_H_
#include "js/CallAndConstruct.h"
#include "js/RootingAPI.h"
#include "js/TypeDecls.h"
#include "mozilla/dom/BindingDeclarations.h"
#include "mozilla/dom/Nullable.h"
namespace mozilla {
namespace dom {
struct NativePropertyHooks;
class ProtoAndIfaceCache;
struct StripRuleAtoms;
} // namespace dom
} // namespace mozilla
namespace mozilla::dom {
struct StripRule : public DictionaryBase
{
MOZ_INIT_OUTSIDE_CTOR Sequence<nsCString> mQueryParams;
MOZ_INIT_OUTSIDE_CTOR Sequence<nsCString> mTopLevelSites;
StripRule();
explicit inline StripRule(const FastDictionaryInitializer& )
{
// Do nothing here; this is used by our "Fast" subclass
}
StripRule(StripRule&& aOther) = default;
explicit inline StripRule(const StripRule& aOther)
{
*this = aOther;
}
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);
void
TraceDictionary(JSTracer* trc);
StripRule&
operator=(const StripRule& aOther);
private:
static bool
InitIds(JSContext* cx, StripRuleAtoms* atomsCache);
};
namespace binding_detail {
struct FastStripRule : public StripRule
{
inline FastStripRule()
: StripRule(FastDictionaryInitializer())
{
// Doesn't matter what int we pass to the parent constructor
}
};
} // namespace binding_detail
} // namespace mozilla::dom
#endif // DOM_STRIPONSHARERULEBINDING_H_