Bug 1904139 - Don't re-initialize platform font list from GetDefaultFont. r=jfkthame
[gecko.git] / netwerk / base / TRRLoadInfo.cpp
blobec2267f3e880b989ae9521c1345077d1c6452e1e
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 #include "TRRLoadInfo.h"
8 #include "mozilla/dom/ClientSource.h"
9 #include "mozilla/dom/FeaturePolicy.h"
10 #include "mozilla/dom/DOMTypes.h"
11 #include "nsContentUtils.h"
12 #include "nsIRedirectHistoryEntry.h"
14 using namespace mozilla::dom;
16 namespace mozilla {
17 namespace net {
19 NS_IMPL_ISUPPORTS(TRRLoadInfo, nsILoadInfo)
21 TRRLoadInfo::TRRLoadInfo(nsIURI* aResultPrincipalURI,
22 nsContentPolicyType aContentPolicyType)
23 : mResultPrincipalURI(aResultPrincipalURI),
24 mInternalContentPolicyType(aContentPolicyType) {}
26 already_AddRefed<nsILoadInfo> TRRLoadInfo::Clone() const {
27 nsCOMPtr<nsILoadInfo> loadInfo =
28 new TRRLoadInfo(mResultPrincipalURI, mInternalContentPolicyType);
30 return loadInfo.forget();
33 NS_IMETHODIMP
34 TRRLoadInfo::GetLoadingPrincipal(nsIPrincipal** aLoadingPrincipal) {
35 return NS_ERROR_NOT_IMPLEMENTED;
38 nsIPrincipal* TRRLoadInfo::VirtualGetLoadingPrincipal() { return nullptr; }
40 NS_IMETHODIMP
41 TRRLoadInfo::GetTriggeringPrincipal(nsIPrincipal** aTriggeringPrincipal) {
42 return NS_ERROR_NOT_IMPLEMENTED;
45 nsIPrincipal* TRRLoadInfo::TriggeringPrincipal() { return nullptr; }
47 NS_IMETHODIMP
48 TRRLoadInfo::GetPrincipalToInherit(nsIPrincipal** aPrincipalToInherit) {
49 return NS_ERROR_NOT_IMPLEMENTED;
52 NS_IMETHODIMP
53 TRRLoadInfo::SetPrincipalToInherit(nsIPrincipal* aPrincipalToInherit) {
54 return NS_ERROR_NOT_IMPLEMENTED;
57 nsIPrincipal* TRRLoadInfo::PrincipalToInherit() { return nullptr; }
59 nsIPrincipal* TRRLoadInfo::FindPrincipalToInherit(nsIChannel* aChannel) {
60 return nullptr;
63 const nsID& TRRLoadInfo::GetSandboxedNullPrincipalID() {
64 return mSandboxedNullPrincipalID;
67 void TRRLoadInfo::ResetSandboxedNullPrincipalID() {}
69 nsIPrincipal* TRRLoadInfo::GetTopLevelPrincipal() { return nullptr; }
71 NS_IMETHODIMP
72 TRRLoadInfo::GetTriggeringRemoteType(nsACString& aTriggeringRemoteType) {
73 return NS_ERROR_NOT_IMPLEMENTED;
76 NS_IMETHODIMP
77 TRRLoadInfo::SetTriggeringRemoteType(const nsACString& aTriggeringRemoteType) {
78 return NS_ERROR_NOT_IMPLEMENTED;
81 NS_IMETHODIMP
82 TRRLoadInfo::GetLoadingDocument(Document** aResult) {
83 return NS_ERROR_NOT_IMPLEMENTED;
86 nsINode* TRRLoadInfo::LoadingNode() { return nullptr; }
88 already_AddRefed<nsISupports> TRRLoadInfo::ContextForTopLevelLoad() {
89 return nullptr;
92 already_AddRefed<nsISupports> TRRLoadInfo::GetLoadingContext() {
93 return nullptr;
96 NS_IMETHODIMP
97 TRRLoadInfo::GetLoadingContextXPCOM(nsISupports** aResult) {
98 return NS_ERROR_NOT_IMPLEMENTED;
101 NS_IMETHODIMP
102 TRRLoadInfo::GetSecurityFlags(nsSecurityFlags* aResult) {
103 return NS_ERROR_NOT_IMPLEMENTED;
106 NS_IMETHODIMP
107 TRRLoadInfo::GetSandboxFlags(uint32_t* aResult) {
108 return NS_ERROR_NOT_IMPLEMENTED;
110 NS_IMETHODIMP
111 TRRLoadInfo::GetTriggeringSandboxFlags(uint32_t* aResult) {
112 return NS_ERROR_NOT_IMPLEMENTED;
114 NS_IMETHODIMP
115 TRRLoadInfo::SetTriggeringSandboxFlags(uint32_t aResult) {
116 return NS_ERROR_NOT_IMPLEMENTED;
119 NS_IMETHODIMP
120 TRRLoadInfo::GetTriggeringWindowId(uint64_t* aResult) {
121 return NS_ERROR_NOT_IMPLEMENTED;
123 NS_IMETHODIMP
124 TRRLoadInfo::SetTriggeringWindowId(uint64_t aResult) {
125 return NS_ERROR_NOT_IMPLEMENTED;
128 NS_IMETHODIMP
129 TRRLoadInfo::GetTriggeringStorageAccess(bool* aResult) {
130 return NS_ERROR_NOT_IMPLEMENTED;
132 NS_IMETHODIMP
133 TRRLoadInfo::SetTriggeringStorageAccess(bool aResult) {
134 return NS_ERROR_NOT_IMPLEMENTED;
137 NS_IMETHODIMP
138 TRRLoadInfo::GetSecurityMode(uint32_t* aFlags) {
139 return NS_ERROR_NOT_IMPLEMENTED;
142 NS_IMETHODIMP
143 TRRLoadInfo::GetIsInThirdPartyContext(bool* aIsInThirdPartyContext) {
144 return NS_ERROR_NOT_IMPLEMENTED;
147 NS_IMETHODIMP
148 TRRLoadInfo::SetIsInThirdPartyContext(bool aIsInThirdPartyContext) {
149 return NS_ERROR_NOT_IMPLEMENTED;
152 NS_IMETHODIMP
153 TRRLoadInfo::GetIsThirdPartyContextToTopWindow(
154 bool* aIsThirdPartyContextToTopWindow) {
155 return NS_ERROR_NOT_IMPLEMENTED;
158 NS_IMETHODIMP
159 TRRLoadInfo::SetIsThirdPartyContextToTopWindow(
160 bool aIsThirdPartyContextToTopWindow) {
161 return NS_ERROR_NOT_IMPLEMENTED;
164 NS_IMETHODIMP
165 TRRLoadInfo::GetCookiePolicy(uint32_t* aResult) {
166 return NS_ERROR_NOT_IMPLEMENTED;
169 NS_IMETHODIMP
170 TRRLoadInfo::GetCookieJarSettings(nsICookieJarSettings** aCookieJarSettings) {
171 return NS_ERROR_NOT_IMPLEMENTED;
174 NS_IMETHODIMP
175 TRRLoadInfo::SetCookieJarSettings(nsICookieJarSettings* aCookieJarSettings) {
176 return NS_ERROR_NOT_IMPLEMENTED;
179 NS_IMETHODIMP
180 TRRLoadInfo::GetStoragePermission(
181 nsILoadInfo::StoragePermissionState* aHasStoragePermission) {
182 return NS_ERROR_NOT_IMPLEMENTED;
185 NS_IMETHODIMP
186 TRRLoadInfo::SetStoragePermission(
187 nsILoadInfo::StoragePermissionState aHasStoragePermission) {
188 return NS_ERROR_NOT_IMPLEMENTED;
191 const Maybe<RFPTarget>& TRRLoadInfo::GetOverriddenFingerprintingSettings() {
192 return mOverriddenFingerprintingSettings;
195 void TRRLoadInfo::SetOverriddenFingerprintingSettings(RFPTarget aTargets) {}
197 NS_IMETHODIMP
198 TRRLoadInfo::GetIsMetaRefresh(bool* aResult) {
199 return NS_ERROR_NOT_IMPLEMENTED;
202 NS_IMETHODIMP
203 TRRLoadInfo::SetIsMetaRefresh(bool aResult) { return NS_ERROR_NOT_IMPLEMENTED; }
205 NS_IMETHODIMP
206 TRRLoadInfo::GetForceInheritPrincipal(bool* aInheritPrincipal) {
207 return NS_ERROR_NOT_IMPLEMENTED;
210 NS_IMETHODIMP
211 TRRLoadInfo::GetForceInheritPrincipalOverruleOwner(bool* aInheritPrincipal) {
212 return NS_ERROR_NOT_IMPLEMENTED;
215 NS_IMETHODIMP
216 TRRLoadInfo::GetLoadingSandboxed(bool* aLoadingSandboxed) {
217 return NS_ERROR_NOT_IMPLEMENTED;
220 NS_IMETHODIMP
221 TRRLoadInfo::GetAboutBlankInherits(bool* aResult) {
222 return NS_ERROR_NOT_IMPLEMENTED;
225 NS_IMETHODIMP
226 TRRLoadInfo::GetAllowChrome(bool* aResult) { return NS_ERROR_NOT_IMPLEMENTED; }
228 NS_IMETHODIMP
229 TRRLoadInfo::GetDisallowScript(bool* aResult) {
230 return NS_ERROR_NOT_IMPLEMENTED;
233 NS_IMETHODIMP
234 TRRLoadInfo::GetDontFollowRedirects(bool* aResult) {
235 return NS_ERROR_NOT_IMPLEMENTED;
238 NS_IMETHODIMP
239 TRRLoadInfo::GetLoadErrorPage(bool* aResult) {
240 return NS_ERROR_NOT_IMPLEMENTED;
243 NS_IMETHODIMP
244 TRRLoadInfo::GetIsFormSubmission(bool* aResult) {
245 return NS_ERROR_NOT_IMPLEMENTED;
248 NS_IMETHODIMP
249 TRRLoadInfo::SetIsFormSubmission(bool aValue) {
250 return NS_ERROR_NOT_IMPLEMENTED;
253 NS_IMETHODIMP
254 TRRLoadInfo::GetSendCSPViolationEvents(bool* aResult) {
255 return NS_ERROR_NOT_IMPLEMENTED;
258 NS_IMETHODIMP
259 TRRLoadInfo::SetSendCSPViolationEvents(bool aValue) {
260 return NS_ERROR_NOT_IMPLEMENTED;
263 NS_IMETHODIMP
264 TRRLoadInfo::GetExternalContentPolicyType(nsContentPolicyType* aResult) {
265 // We have to use nsContentPolicyType because ExtContentPolicyType is not
266 // visible from xpidl.
267 *aResult = static_cast<nsContentPolicyType>(
268 nsContentUtils::InternalContentPolicyTypeToExternal(
269 mInternalContentPolicyType));
270 return NS_OK;
273 nsContentPolicyType TRRLoadInfo::InternalContentPolicyType() {
274 return mInternalContentPolicyType;
277 NS_IMETHODIMP
278 TRRLoadInfo::GetBlockAllMixedContent(bool* aResult) {
279 return NS_ERROR_NOT_IMPLEMENTED;
282 NS_IMETHODIMP
283 TRRLoadInfo::GetUpgradeInsecureRequests(bool* aResult) {
284 return NS_ERROR_NOT_IMPLEMENTED;
287 NS_IMETHODIMP
288 TRRLoadInfo::GetBrowserUpgradeInsecureRequests(bool* aResult) {
289 return NS_ERROR_NOT_IMPLEMENTED;
292 NS_IMETHODIMP
293 TRRLoadInfo::GetBrowserDidUpgradeInsecureRequests(bool* aResult) {
294 return NS_ERROR_NOT_IMPLEMENTED;
297 NS_IMETHODIMP
298 TRRLoadInfo::SetBrowserDidUpgradeInsecureRequests(
299 bool aBrowserDidUpgradeInsecureRequests) {
300 return NS_ERROR_NOT_IMPLEMENTED;
303 NS_IMETHODIMP
304 TRRLoadInfo::GetBrowserWouldUpgradeInsecureRequests(bool* aResult) {
305 return NS_ERROR_NOT_IMPLEMENTED;
308 NS_IMETHODIMP
309 TRRLoadInfo::SetForceAllowDataURI(bool aForceAllowDataURI) {
310 return NS_ERROR_NOT_IMPLEMENTED;
313 NS_IMETHODIMP
314 TRRLoadInfo::GetForceAllowDataURI(bool* aForceAllowDataURI) {
315 return NS_ERROR_NOT_IMPLEMENTED;
318 NS_IMETHODIMP
319 TRRLoadInfo::SetAllowInsecureRedirectToDataURI(
320 bool aAllowInsecureRedirectToDataURI) {
321 return NS_ERROR_NOT_IMPLEMENTED;
324 NS_IMETHODIMP
325 TRRLoadInfo::GetAllowInsecureRedirectToDataURI(
326 bool* aAllowInsecureRedirectToDataURI) {
327 return NS_ERROR_NOT_IMPLEMENTED;
330 NS_IMETHODIMP
331 TRRLoadInfo::SetSkipContentPolicyCheckForWebRequest(bool aSkip) {
332 return NS_ERROR_NOT_IMPLEMENTED;
335 NS_IMETHODIMP
336 TRRLoadInfo::GetSkipContentPolicyCheckForWebRequest(bool* aSkip) {
337 return NS_ERROR_NOT_IMPLEMENTED;
340 NS_IMETHODIMP
341 TRRLoadInfo::SetOriginalFrameSrcLoad(bool aOriginalFrameSrcLoad) {
342 return NS_ERROR_NOT_IMPLEMENTED;
345 NS_IMETHODIMP
346 TRRLoadInfo::GetOriginalFrameSrcLoad(bool* aOriginalFrameSrcLoad) {
347 return NS_ERROR_NOT_IMPLEMENTED;
350 NS_IMETHODIMP
351 TRRLoadInfo::GetForceInheritPrincipalDropped(bool* aResult) {
352 return NS_ERROR_NOT_IMPLEMENTED;
355 NS_IMETHODIMP
356 TRRLoadInfo::GetInnerWindowID(uint64_t* aResult) {
357 return NS_ERROR_NOT_IMPLEMENTED;
360 NS_IMETHODIMP
361 TRRLoadInfo::GetBrowsingContextID(uint64_t* aResult) {
362 return NS_ERROR_NOT_IMPLEMENTED;
365 NS_IMETHODIMP
366 TRRLoadInfo::GetWorkerAssociatedBrowsingContextID(uint64_t* aResult) {
367 return NS_ERROR_NOT_IMPLEMENTED;
370 NS_IMETHODIMP
371 TRRLoadInfo::SetWorkerAssociatedBrowsingContextID(uint64_t aResult) {
372 return NS_ERROR_NOT_IMPLEMENTED;
375 NS_IMETHODIMP
376 TRRLoadInfo::GetFrameBrowsingContextID(uint64_t* aResult) {
377 return NS_ERROR_NOT_IMPLEMENTED;
380 NS_IMETHODIMP
381 TRRLoadInfo::GetTargetBrowsingContextID(uint64_t* aResult) {
382 return NS_ERROR_NOT_IMPLEMENTED;
385 NS_IMETHODIMP
386 TRRLoadInfo::GetBrowsingContext(dom::BrowsingContext** aResult) {
387 return NS_ERROR_NOT_IMPLEMENTED;
390 NS_IMETHODIMP
391 TRRLoadInfo::GetWorkerAssociatedBrowsingContext(
392 dom::BrowsingContext** aResult) {
393 return NS_ERROR_NOT_IMPLEMENTED;
396 NS_IMETHODIMP
397 TRRLoadInfo::GetFrameBrowsingContext(dom::BrowsingContext** aResult) {
398 return NS_ERROR_NOT_IMPLEMENTED;
401 NS_IMETHODIMP
402 TRRLoadInfo::GetTargetBrowsingContext(dom::BrowsingContext** aResult) {
403 return NS_ERROR_NOT_IMPLEMENTED;
406 NS_IMETHODIMP
407 TRRLoadInfo::GetScriptableOriginAttributes(
408 JSContext* aCx, JS::MutableHandle<JS::Value> aOriginAttributes) {
409 return NS_ERROR_NOT_IMPLEMENTED;
412 NS_IMETHODIMP
413 TRRLoadInfo::ResetPrincipalToInheritToNullPrincipal() {
414 return NS_ERROR_NOT_IMPLEMENTED;
417 NS_IMETHODIMP
418 TRRLoadInfo::SetScriptableOriginAttributes(
419 JSContext* aCx, JS::Handle<JS::Value> aOriginAttributes) {
420 return NS_ERROR_NOT_IMPLEMENTED;
423 nsresult TRRLoadInfo::GetOriginAttributes(
424 mozilla::OriginAttributes* aOriginAttributes) {
425 NS_ENSURE_ARG(aOriginAttributes);
426 *aOriginAttributes = mOriginAttributes;
427 return NS_OK;
430 nsresult TRRLoadInfo::SetOriginAttributes(
431 const mozilla::OriginAttributes& aOriginAttributes) {
432 return NS_ERROR_NOT_IMPLEMENTED;
435 NS_IMETHODIMP
436 TRRLoadInfo::SetInitialSecurityCheckDone(bool aInitialSecurityCheckDone) {
437 return NS_ERROR_NOT_IMPLEMENTED;
440 NS_IMETHODIMP
441 TRRLoadInfo::GetInitialSecurityCheckDone(bool* aResult) {
442 return NS_ERROR_NOT_IMPLEMENTED;
445 NS_IMETHODIMP
446 TRRLoadInfo::AppendRedirectHistoryEntry(nsIChannel* aChannelToDeriveFrom,
447 bool aIsInternalRedirect) {
448 return NS_ERROR_NOT_IMPLEMENTED;
451 NS_IMETHODIMP
452 TRRLoadInfo::GetRedirectChainIncludingInternalRedirects(
453 JSContext* aCx, JS::MutableHandle<JS::Value> aChain) {
454 return NS_ERROR_NOT_IMPLEMENTED;
457 const nsTArray<nsCOMPtr<nsIRedirectHistoryEntry>>&
458 TRRLoadInfo::RedirectChainIncludingInternalRedirects() {
459 return mEmptyRedirectChain;
462 NS_IMETHODIMP
463 TRRLoadInfo::GetRedirectChain(JSContext* aCx,
464 JS::MutableHandle<JS::Value> aChain) {
465 return NS_ERROR_NOT_IMPLEMENTED;
468 const nsTArray<nsCOMPtr<nsIRedirectHistoryEntry>>&
469 TRRLoadInfo::RedirectChain() {
470 return mEmptyRedirectChain;
473 const nsTArray<nsCOMPtr<nsIPrincipal>>& TRRLoadInfo::AncestorPrincipals() {
474 return mEmptyPrincipals;
477 const nsTArray<uint64_t>& TRRLoadInfo::AncestorBrowsingContextIDs() {
478 return mEmptyBrowsingContextIDs;
481 void TRRLoadInfo::SetCorsPreflightInfo(const nsTArray<nsCString>& aHeaders,
482 bool aForcePreflight) {}
484 const nsTArray<nsCString>& TRRLoadInfo::CorsUnsafeHeaders() {
485 return mCorsUnsafeHeaders;
488 NS_IMETHODIMP
489 TRRLoadInfo::GetForcePreflight(bool* aForcePreflight) {
490 return NS_ERROR_NOT_IMPLEMENTED;
493 NS_IMETHODIMP
494 TRRLoadInfo::GetIsPreflight(bool* aIsPreflight) {
495 return NS_ERROR_NOT_IMPLEMENTED;
498 NS_IMETHODIMP
499 TRRLoadInfo::SetLoadTriggeredFromExternal(bool aLoadTriggeredFromExternal) {
500 return NS_ERROR_NOT_IMPLEMENTED;
503 NS_IMETHODIMP
504 TRRLoadInfo::GetLoadTriggeredFromExternal(bool* aLoadTriggeredFromExternal) {
505 return NS_ERROR_NOT_IMPLEMENTED;
508 NS_IMETHODIMP
509 TRRLoadInfo::GetServiceWorkerTaintingSynthesized(
510 bool* aServiceWorkerTaintingSynthesized) {
511 return NS_ERROR_NOT_IMPLEMENTED;
514 NS_IMETHODIMP
515 TRRLoadInfo::GetTainting(uint32_t* aTaintingOut) {
516 return NS_ERROR_NOT_IMPLEMENTED;
519 NS_IMETHODIMP
520 TRRLoadInfo::MaybeIncreaseTainting(uint32_t aTainting) {
521 return NS_ERROR_NOT_IMPLEMENTED;
524 void TRRLoadInfo::SynthesizeServiceWorkerTainting(LoadTainting aTainting) {}
526 NS_IMETHODIMP
527 TRRLoadInfo::GetDocumentHasUserInteracted(bool* aDocumentHasUserInteracted) {
528 return NS_ERROR_NOT_IMPLEMENTED;
531 NS_IMETHODIMP
532 TRRLoadInfo::SetDocumentHasUserInteracted(bool aDocumentHasUserInteracted) {
533 return NS_ERROR_NOT_IMPLEMENTED;
536 NS_IMETHODIMP
537 TRRLoadInfo::GetAllowListFutureDocumentsCreatedFromThisRedirectChain(
538 bool* aValue) {
539 return NS_ERROR_NOT_IMPLEMENTED;
542 NS_IMETHODIMP
543 TRRLoadInfo::SetAllowListFutureDocumentsCreatedFromThisRedirectChain(
544 bool aValue) {
545 return NS_ERROR_NOT_IMPLEMENTED;
548 NS_IMETHODIMP
549 TRRLoadInfo::GetNeedForCheckingAntiTrackingHeuristic(bool* aValue) {
550 return NS_ERROR_NOT_IMPLEMENTED;
553 NS_IMETHODIMP
554 TRRLoadInfo::SetNeedForCheckingAntiTrackingHeuristic(bool aValue) {
555 return NS_ERROR_NOT_IMPLEMENTED;
558 NS_IMETHODIMP
559 TRRLoadInfo::GetCspNonce(nsAString& aCspNonce) {
560 return NS_ERROR_NOT_IMPLEMENTED;
563 NS_IMETHODIMP
564 TRRLoadInfo::SetCspNonce(const nsAString& aCspNonce) {
565 return NS_ERROR_NOT_IMPLEMENTED;
568 NS_IMETHODIMP
569 TRRLoadInfo::GetIntegrityMetadata(nsAString& aIntegrityMetadata) {
570 return NS_ERROR_NOT_IMPLEMENTED;
573 NS_IMETHODIMP
574 TRRLoadInfo::SetIntegrityMetadata(const nsAString& aIntegrityMetadata) {
575 return NS_ERROR_NOT_IMPLEMENTED;
578 NS_IMETHODIMP
579 TRRLoadInfo::GetSkipContentSniffing(bool* aSkipContentSniffing) {
580 return NS_ERROR_NOT_IMPLEMENTED;
583 NS_IMETHODIMP
584 TRRLoadInfo::SetSkipContentSniffing(bool aSkipContentSniffing) {
585 return NS_ERROR_NOT_IMPLEMENTED;
588 NS_IMETHODIMP
589 TRRLoadInfo::GetIsTopLevelLoad(bool* aResult) {
590 return NS_ERROR_NOT_IMPLEMENTED;
593 NS_IMETHODIMP
594 TRRLoadInfo::GetIsFromProcessingFrameAttributes(
595 bool* aIsFromProcessingFrameAttributes) {
596 return NS_ERROR_NOT_IMPLEMENTED;
599 NS_IMETHODIMP
600 TRRLoadInfo::SetIsMediaRequest(bool aIsMediaRequest) {
601 return NS_ERROR_NOT_IMPLEMENTED;
604 NS_IMETHODIMP
605 TRRLoadInfo::GetIsMediaRequest(bool* aIsMediaRequest) {
606 return NS_ERROR_NOT_IMPLEMENTED;
609 NS_IMETHODIMP
610 TRRLoadInfo::SetIsMediaInitialRequest(bool aIsMediaInitialRequest) {
611 return NS_ERROR_NOT_IMPLEMENTED;
614 NS_IMETHODIMP
615 TRRLoadInfo::GetIsMediaInitialRequest(bool* aIsMediaInitialRequest) {
616 return NS_ERROR_NOT_IMPLEMENTED;
619 NS_IMETHODIMP
620 TRRLoadInfo::SetIsFromObjectOrEmbed(bool aIsFromObjectOrEmbed) {
621 return NS_ERROR_NOT_IMPLEMENTED;
624 NS_IMETHODIMP
625 TRRLoadInfo::GetIsFromObjectOrEmbed(bool* aIsFromObjectOrEmbed) {
626 return NS_ERROR_NOT_IMPLEMENTED;
629 NS_IMETHODIMP
630 TRRLoadInfo::GetShouldSkipCheckForBrokenURLOrZeroSized(
631 bool* aShouldSkipCheckForBrokenURLOrZeroSized) {
632 return NS_ERROR_NOT_IMPLEMENTED;
635 NS_IMETHODIMP
636 TRRLoadInfo::GetResultPrincipalURI(nsIURI** aURI) {
637 nsCOMPtr<nsIURI> uri = mResultPrincipalURI;
638 uri.forget(aURI);
639 return NS_OK;
642 NS_IMETHODIMP
643 TRRLoadInfo::SetResultPrincipalURI(nsIURI* aURI) {
644 mResultPrincipalURI = aURI;
645 return NS_OK;
648 NS_IMETHODIMP
649 TRRLoadInfo::GetChannelCreationOriginalURI(nsIURI** aURI) {
650 return NS_ERROR_NOT_IMPLEMENTED;
653 NS_IMETHODIMP
654 TRRLoadInfo::SetChannelCreationOriginalURI(nsIURI* aURI) {
655 return NS_ERROR_NOT_IMPLEMENTED;
658 NS_IMETHODIMP
659 TRRLoadInfo::SetRequestBlockingReason(uint32_t aReason) {
660 return NS_ERROR_NOT_IMPLEMENTED;
662 NS_IMETHODIMP
663 TRRLoadInfo::GetRequestBlockingReason(uint32_t* aReason) {
664 return NS_ERROR_NOT_IMPLEMENTED;
667 void TRRLoadInfo::SetClientInfo(const ClientInfo& aClientInfo) {}
669 const Maybe<ClientInfo>& TRRLoadInfo::GetClientInfo() { return mClientInfo; }
671 void TRRLoadInfo::GiveReservedClientSource(
672 UniquePtr<ClientSource>&& aClientSource) {}
674 UniquePtr<ClientSource> TRRLoadInfo::TakeReservedClientSource() {
675 return nullptr;
678 void TRRLoadInfo::SetReservedClientInfo(const ClientInfo& aClientInfo) {}
680 void TRRLoadInfo::OverrideReservedClientInfoInParent(
681 const ClientInfo& aClientInfo) {}
683 const Maybe<ClientInfo>& TRRLoadInfo::GetReservedClientInfo() {
684 return mReservedClientInfo;
687 void TRRLoadInfo::SetInitialClientInfo(const ClientInfo& aClientInfo) {}
689 const Maybe<ClientInfo>& TRRLoadInfo::GetInitialClientInfo() {
690 return mInitialClientInfo;
693 void TRRLoadInfo::SetController(const ServiceWorkerDescriptor& aServiceWorker) {
696 void TRRLoadInfo::ClearController() {}
698 const Maybe<ServiceWorkerDescriptor>& TRRLoadInfo::GetController() {
699 return mController;
702 void TRRLoadInfo::SetPerformanceStorage(
703 PerformanceStorage* aPerformanceStorage) {}
705 PerformanceStorage* TRRLoadInfo::GetPerformanceStorage() { return nullptr; }
707 NS_IMETHODIMP
708 TRRLoadInfo::GetCspEventListener(nsICSPEventListener** aCSPEventListener) {
709 return NS_ERROR_NOT_IMPLEMENTED;
712 NS_IMETHODIMP
713 TRRLoadInfo::SetCspEventListener(nsICSPEventListener* aCSPEventListener) {
714 return NS_ERROR_NOT_IMPLEMENTED;
717 already_AddRefed<nsIContentSecurityPolicy> TRRLoadInfo::GetCsp() {
718 return nullptr;
721 already_AddRefed<nsIContentSecurityPolicy> TRRLoadInfo::GetPreloadCsp() {
722 return nullptr;
725 already_AddRefed<nsIContentSecurityPolicy> TRRLoadInfo::GetCspToInherit() {
726 return nullptr;
729 Maybe<FeaturePolicyInfo> TRRLoadInfo::GetContainerFeaturePolicyInfo() {
730 return Nothing();
733 void TRRLoadInfo::SetContainerFeaturePolicyInfo(
734 const FeaturePolicyInfo& aContainerFeaturePolicyInfo) {}
736 NS_IMETHODIMP
737 TRRLoadInfo::GetHttpsOnlyStatus(uint32_t* aHttpsOnlyStatus) {
738 return NS_ERROR_NOT_IMPLEMENTED;
741 NS_IMETHODIMP
742 TRRLoadInfo::SetHttpsOnlyStatus(uint32_t aHttpsOnlyStatus) {
743 return NS_ERROR_NOT_IMPLEMENTED;
746 NS_IMETHODIMP
747 TRRLoadInfo::GetHstsStatus(bool* aHstsStatus) {
748 return NS_ERROR_NOT_IMPLEMENTED;
751 NS_IMETHODIMP
752 TRRLoadInfo::SetHstsStatus(bool aHstsStatus) {
753 return NS_ERROR_NOT_IMPLEMENTED;
756 NS_IMETHODIMP
757 TRRLoadInfo::GetHasValidUserGestureActivation(
758 bool* aHasValidUserGestureActivation) {
759 return NS_ERROR_NOT_IMPLEMENTED;
762 NS_IMETHODIMP
763 TRRLoadInfo::SetHasValidUserGestureActivation(
764 bool aHasValidUserGestureActivation) {
765 return NS_ERROR_NOT_IMPLEMENTED;
768 NS_IMETHODIMP
769 TRRLoadInfo::GetInternalContentPolicyType(nsContentPolicyType* aResult) {
770 *aResult = mInternalContentPolicyType;
771 return NS_OK;
774 NS_IMETHODIMP
775 TRRLoadInfo::GetAllowDeprecatedSystemRequests(
776 bool* aAllowDeprecatedSystemRequests) {
777 return NS_ERROR_NOT_IMPLEMENTED;
780 NS_IMETHODIMP
781 TRRLoadInfo::SetAllowDeprecatedSystemRequests(
782 bool aAllowDeprecatedSystemRequests) {
783 return NS_ERROR_NOT_IMPLEMENTED;
786 NS_IMETHODIMP
787 TRRLoadInfo::GetIsUserTriggeredSave(bool* aIsUserTriggeredSave) {
788 return NS_ERROR_NOT_IMPLEMENTED;
791 NS_IMETHODIMP
792 TRRLoadInfo::SetIsUserTriggeredSave(bool aIsUserTriggeredSave) {
793 return NS_ERROR_NOT_IMPLEMENTED;
796 NS_IMETHODIMP
797 TRRLoadInfo::GetIsInDevToolsContext(bool* aIsInDevToolsContext) {
798 return NS_ERROR_NOT_IMPLEMENTED;
801 NS_IMETHODIMP
802 TRRLoadInfo::SetIsInDevToolsContext(bool aIsInDevToolsContext) {
803 return NS_ERROR_NOT_IMPLEMENTED;
806 NS_IMETHODIMP
807 TRRLoadInfo::GetParserCreatedScript(bool* aParserCreatedScript) {
808 return NS_ERROR_NOT_IMPLEMENTED;
811 NS_IMETHODIMP
812 TRRLoadInfo::SetParserCreatedScript(bool aParserCreatedScript) {
813 return NS_ERROR_NOT_IMPLEMENTED;
816 NS_IMETHODIMP
817 TRRLoadInfo::GetLoadingEmbedderPolicy(
818 nsILoadInfo::CrossOriginEmbedderPolicy* aOutPolicy) {
819 return NS_ERROR_NOT_IMPLEMENTED;
822 NS_IMETHODIMP
823 TRRLoadInfo::SetLoadingEmbedderPolicy(
824 nsILoadInfo::CrossOriginEmbedderPolicy aPolicy) {
825 return NS_ERROR_NOT_IMPLEMENTED;
828 NS_IMETHODIMP
829 TRRLoadInfo::GetIsOriginTrialCoepCredentiallessEnabledForTopLevel(
830 bool* aIsOriginTrialCoepCredentiallessEnabledForTopLevel) {
831 return NS_ERROR_NOT_IMPLEMENTED;
834 NS_IMETHODIMP
835 TRRLoadInfo::SetIsOriginTrialCoepCredentiallessEnabledForTopLevel(
836 bool aIsOriginTrialCoepCredentiallessEnabledForTopLevel) {
837 return NS_ERROR_NOT_IMPLEMENTED;
840 NS_IMETHODIMP
841 TRRLoadInfo::GetUnstrippedURI(nsIURI** aURI) {
842 return NS_ERROR_NOT_IMPLEMENTED;
845 NS_IMETHODIMP
846 TRRLoadInfo::SetUnstrippedURI(nsIURI* aURI) { return NS_ERROR_NOT_IMPLEMENTED; }
848 nsIInterceptionInfo* TRRLoadInfo::InterceptionInfo() { return nullptr; }
849 void TRRLoadInfo::SetInterceptionInfo(nsIInterceptionInfo* aPrincipla) {}
851 NS_IMETHODIMP
852 TRRLoadInfo::GetHasInjectedCookieForCookieBannerHandling(
853 bool* aHasInjectedCookieForCookieBannerHandling) {
854 return NS_ERROR_NOT_IMPLEMENTED;
857 NS_IMETHODIMP
858 TRRLoadInfo::SetHasInjectedCookieForCookieBannerHandling(
859 bool aHasInjectedCookieForCookieBannerHandling) {
860 return NS_ERROR_NOT_IMPLEMENTED;
863 NS_IMETHODIMP
864 TRRLoadInfo::GetWasSchemelessInput(bool* aWasSchemelessInput) {
865 return NS_ERROR_NOT_IMPLEMENTED;
868 NS_IMETHODIMP
869 TRRLoadInfo::SetWasSchemelessInput(bool aWasSchemelessInput) {
870 return NS_ERROR_NOT_IMPLEMENTED;
873 NS_IMETHODIMP
874 TRRLoadInfo::GetHttpsUpgradeTelemetry(
875 nsILoadInfo::HTTPSUpgradeTelemetryType* aOutHttpsTelemetry) {
876 return NS_ERROR_NOT_IMPLEMENTED;
879 NS_IMETHODIMP
880 TRRLoadInfo::SetHttpsUpgradeTelemetry(
881 nsILoadInfo::HTTPSUpgradeTelemetryType aHttpsTelemetry) {
882 return NS_ERROR_NOT_IMPLEMENTED;
885 } // namespace net
886 } // namespace mozilla