Source code
Revision control
Copy as Markdown
Other Tools
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
// Shared IPDL types for Speculation Rules prefetch.
// Imported by both PPrefetchRecord.ipdl (the protocol) and PWindowGlobal.ipdl
// (which carries the constructor message).
//
include "mozilla/dom/ReferrerInfoUtils.h";
[RefCounted] using class nsIReferrerInfo from "nsIReferrerInfo.h";
[RefCounted] using class nsIURI from "mozilla/ipc/URIUtils.h";
namespace mozilla {
namespace dom {
// Arguments for `start a referrer-initiated navigational prefetch`.
struct SpeculativePrefetchArgs {
nsIURI uri;
nullable nsIReferrerInfo referrerInfo;
nsString noVarySearchHint;
bool anonymizeClientIP;
// A null speculation rule tag is carried as a voided string.
nsString?[] tags;
};
} // namespace dom
} // namespace mozilla