Merge mozilla-central to autoland. CLOSED TREE
[gecko.git] / netwerk / base / TRRLoadInfo.cpp
blob920e7623a7f912296fc23361f66ab35a30c35f1e
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 "nsContentUtils.h"
10 #include "nsIRedirectHistoryEntry.h"
12 using namespace mozilla::dom;
14 namespace mozilla {
15 namespace net {
17 NS_IMPL_ISUPPORTS(TRRLoadInfo, nsILoadInfo)
19 TRRLoadInfo::TRRLoadInfo(nsIURI* aResultPrincipalURI,
20 nsContentPolicyType aContentPolicyType)
21 : mResultPrincipalURI(aResultPrincipalURI),
22 mInternalContentPolicyType(aContentPolicyType) {}
24 already_AddRefed<nsILoadInfo> TRRLoadInfo::Clone() const {
25 nsCOMPtr<nsILoadInfo> loadInfo =
26 new TRRLoadInfo(mResultPrincipalURI, mInternalContentPolicyType);
28 return loadInfo.forget();
31 NS_IMETHODIMP
32 TRRLoadInfo::GetLoadingPrincipal(nsIPrincipal** aLoadingPrincipal) {
33 return NS_ERROR_NOT_IMPLEMENTED;
36 nsIPrincipal* TRRLoadInfo::VirtualGetLoadingPrincipal() { return nullptr; }
38 NS_IMETHODIMP
39 TRRLoadInfo::GetTriggeringPrincipal(nsIPrincipal** aTriggeringPrincipal) {
40 return NS_ERROR_NOT_IMPLEMENTED;
43 nsIPrincipal* TRRLoadInfo::TriggeringPrincipal() { return nullptr; }
45 NS_IMETHODIMP
46 TRRLoadInfo::GetPrincipalToInherit(nsIPrincipal** aPrincipalToInherit) {
47 return NS_ERROR_NOT_IMPLEMENTED;
50 NS_IMETHODIMP
51 TRRLoadInfo::SetPrincipalToInherit(nsIPrincipal* aPrincipalToInherit) {
52 return NS_ERROR_NOT_IMPLEMENTED;
55 nsIPrincipal* TRRLoadInfo::PrincipalToInherit() { return nullptr; }
57 nsIPrincipal* TRRLoadInfo::FindPrincipalToInherit(nsIChannel* aChannel) {
58 return nullptr;
61 const nsID& TRRLoadInfo::GetSandboxedNullPrincipalID() {
62 return mSandboxedNullPrincipalID;
65 void TRRLoadInfo::ResetSandboxedNullPrincipalID() {}
67 nsIPrincipal* TRRLoadInfo::GetTopLevelPrincipal() { return nullptr; }
69 NS_IMETHODIMP
70 TRRLoadInfo::GetTriggeringRemoteType(nsACString& aTriggeringRemoteType) {
71 return NS_ERROR_NOT_IMPLEMENTED;
74 NS_IMETHODIMP
75 TRRLoadInfo::SetTriggeringRemoteType(const nsACString& aTriggeringRemoteType) {
76 return NS_ERROR_NOT_IMPLEMENTED;
79 NS_IMETHODIMP
80 TRRLoadInfo::GetLoadingDocument(Document** aResult) {
81 return NS_ERROR_NOT_IMPLEMENTED;
84 nsINode* TRRLoadInfo::LoadingNode() { return nullptr; }
86 already_AddRefed<nsISupports> TRRLoadInfo::ContextForTopLevelLoad() {
87 return nullptr;
90 already_AddRefed<nsISupports> TRRLoadInfo::GetLoadingContext() {
91 return nullptr;
94 NS_IMETHODIMP
95 TRRLoadInfo::GetLoadingContextXPCOM(nsISupports** aResult) {
96 return NS_ERROR_NOT_IMPLEMENTED;
99 NS_IMETHODIMP
100 TRRLoadInfo::GetSecurityFlags(nsSecurityFlags* aResult) {
101 return NS_ERROR_NOT_IMPLEMENTED;
104 NS_IMETHODIMP
105 TRRLoadInfo::GetSandboxFlags(uint32_t* aResult) {
106 return NS_ERROR_NOT_IMPLEMENTED;
108 NS_IMETHODIMP
109 TRRLoadInfo::GetTriggeringSandboxFlags(uint32_t* aResult) {
110 return NS_ERROR_NOT_IMPLEMENTED;
112 NS_IMETHODIMP
113 TRRLoadInfo::SetTriggeringSandboxFlags(uint32_t aResult) {
114 return NS_ERROR_NOT_IMPLEMENTED;
117 NS_IMETHODIMP
118 TRRLoadInfo::GetTriggeringWindowId(uint64_t* aResult) {
119 return NS_ERROR_NOT_IMPLEMENTED;
121 NS_IMETHODIMP
122 TRRLoadInfo::SetTriggeringWindowId(uint64_t aResult) {
123 return NS_ERROR_NOT_IMPLEMENTED;
126 NS_IMETHODIMP
127 TRRLoadInfo::GetTriggeringStorageAccess(bool* aResult) {
128 return NS_ERROR_NOT_IMPLEMENTED;
130 NS_IMETHODIMP
131 TRRLoadInfo::SetTriggeringStorageAccess(bool aResult) {
132 return NS_ERROR_NOT_IMPLEMENTED;
135 NS_IMETHODIMP
136 TRRLoadInfo::GetSecurityMode(uint32_t* aFlags) {
137 return NS_ERROR_NOT_IMPLEMENTED;
140 NS_IMETHODIMP
141 TRRLoadInfo::GetIsInThirdPartyContext(bool* aIsInThirdPartyContext) {
142 return NS_ERROR_NOT_IMPLEMENTED;
145 NS_IMETHODIMP
146 TRRLoadInfo::SetIsInThirdPartyContext(bool aIsInThirdPartyContext) {
147 return NS_ERROR_NOT_IMPLEMENTED;
150 NS_IMETHODIMP
151 TRRLoadInfo::GetIsThirdPartyContextToTopWindow(
152 bool* aIsThirdPartyContextToTopWindow) {
153 return NS_ERROR_NOT_IMPLEMENTED;
156 NS_IMETHODIMP
157 TRRLoadInfo::SetIsThirdPartyContextToTopWindow(
158 bool aIsThirdPartyContextToTopWindow) {
159 return NS_ERROR_NOT_IMPLEMENTED;
162 NS_IMETHODIMP
163 TRRLoadInfo::GetCookiePolicy(uint32_t* aResult) {
164 return NS_ERROR_NOT_IMPLEMENTED;
167 NS_IMETHODIMP
168 TRRLoadInfo::GetCookieJarSettings(nsICookieJarSettings** aCookieJarSettings) {
169 return NS_ERROR_NOT_IMPLEMENTED;
172 NS_IMETHODIMP
173 TRRLoadInfo::SetCookieJarSettings(nsICookieJarSettings* aCookieJarSettings) {
174 return NS_ERROR_NOT_IMPLEMENTED;
177 NS_IMETHODIMP
178 TRRLoadInfo::GetStoragePermission(
179 nsILoadInfo::StoragePermissionState* aHasStoragePermission) {
180 return NS_ERROR_NOT_IMPLEMENTED;
183 NS_IMETHODIMP
184 TRRLoadInfo::SetStoragePermission(
185 nsILoadInfo::StoragePermissionState aHasStoragePermission) {
186 return NS_ERROR_NOT_IMPLEMENTED;
189 const Maybe<RFPTarget>& TRRLoadInfo::GetOverriddenFingerprintingSettings() {
190 return mOverriddenFingerprintingSettings;
193 void TRRLoadInfo::SetOverriddenFingerprintingSettings(RFPTarget aTargets) {}
195 NS_IMETHODIMP
196 TRRLoadInfo::GetIsMetaRefresh(bool* aResult) {
197 return NS_ERROR_NOT_IMPLEMENTED;
200 NS_IMETHODIMP
201 TRRLoadInfo::SetIsMetaRefresh(bool aResult) { return NS_ERROR_NOT_IMPLEMENTED; }
203 NS_IMETHODIMP
204 TRRLoadInfo::GetForceInheritPrincipal(bool* aInheritPrincipal) {
205 return NS_ERROR_NOT_IMPLEMENTED;
208 NS_IMETHODIMP
209 TRRLoadInfo::GetForceInheritPrincipalOverruleOwner(bool* aInheritPrincipal) {
210 return NS_ERROR_NOT_IMPLEMENTED;
213 NS_IMETHODIMP
214 TRRLoadInfo::GetLoadingSandboxed(bool* aLoadingSandboxed) {
215 return NS_ERROR_NOT_IMPLEMENTED;
218 NS_IMETHODIMP
219 TRRLoadInfo::GetAboutBlankInherits(bool* aResult) {
220 return NS_ERROR_NOT_IMPLEMENTED;
223 NS_IMETHODIMP
224 TRRLoadInfo::GetAllowChrome(bool* aResult) { return NS_ERROR_NOT_IMPLEMENTED; }
226 NS_IMETHODIMP
227 TRRLoadInfo::GetDisallowScript(bool* aResult) {
228 return NS_ERROR_NOT_IMPLEMENTED;
231 NS_IMETHODIMP
232 TRRLoadInfo::GetDontFollowRedirects(bool* aResult) {
233 return NS_ERROR_NOT_IMPLEMENTED;
236 NS_IMETHODIMP
237 TRRLoadInfo::GetLoadErrorPage(bool* aResult) {
238 return NS_ERROR_NOT_IMPLEMENTED;
241 NS_IMETHODIMP
242 TRRLoadInfo::GetIsFormSubmission(bool* aResult) {
243 return NS_ERROR_NOT_IMPLEMENTED;
246 NS_IMETHODIMP
247 TRRLoadInfo::SetIsFormSubmission(bool aValue) {
248 return NS_ERROR_NOT_IMPLEMENTED;
251 NS_IMETHODIMP
252 TRRLoadInfo::GetSendCSPViolationEvents(bool* aResult) {
253 return NS_ERROR_NOT_IMPLEMENTED;
256 NS_IMETHODIMP
257 TRRLoadInfo::SetSendCSPViolationEvents(bool aValue) {
258 return NS_ERROR_NOT_IMPLEMENTED;
261 NS_IMETHODIMP
262 TRRLoadInfo::GetExternalContentPolicyType(nsContentPolicyType* aResult) {
263 // We have to use nsContentPolicyType because ExtContentPolicyType is not
264 // visible from xpidl.
265 *aResult = static_cast<nsContentPolicyType>(
266 nsContentUtils::InternalContentPolicyTypeToExternal(
267 mInternalContentPolicyType));
268 return NS_OK;
271 nsContentPolicyType TRRLoadInfo::InternalContentPolicyType() {
272 return mInternalContentPolicyType;
275 NS_IMETHODIMP
276 TRRLoadInfo::GetBlockAllMixedContent(bool* aResult) {
277 return NS_ERROR_NOT_IMPLEMENTED;
280 NS_IMETHODIMP
281 TRRLoadInfo::GetUpgradeInsecureRequests(bool* aResult) {
282 return NS_ERROR_NOT_IMPLEMENTED;
285 NS_IMETHODIMP
286 TRRLoadInfo::GetBrowserUpgradeInsecureRequests(bool* aResult) {
287 return NS_ERROR_NOT_IMPLEMENTED;
290 NS_IMETHODIMP
291 TRRLoadInfo::GetBrowserDidUpgradeInsecureRequests(bool* aResult) {
292 return NS_ERROR_NOT_IMPLEMENTED;
295 NS_IMETHODIMP
296 TRRLoadInfo::SetBrowserDidUpgradeInsecureRequests(
297 bool aBrowserDidUpgradeInsecureRequests) {
298 return NS_ERROR_NOT_IMPLEMENTED;
301 NS_IMETHODIMP
302 TRRLoadInfo::GetBrowserWouldUpgradeInsecureRequests(bool* aResult) {
303 return NS_ERROR_NOT_IMPLEMENTED;
306 NS_IMETHODIMP
307 TRRLoadInfo::SetForceAllowDataURI(bool aForceAllowDataURI) {
308 return NS_ERROR_NOT_IMPLEMENTED;
311 NS_IMETHODIMP
312 TRRLoadInfo::GetForceAllowDataURI(bool* aForceAllowDataURI) {
313 return NS_ERROR_NOT_IMPLEMENTED;
316 NS_IMETHODIMP
317 TRRLoadInfo::SetAllowInsecureRedirectToDataURI(
318 bool aAllowInsecureRedirectToDataURI) {
319 return NS_ERROR_NOT_IMPLEMENTED;
322 NS_IMETHODIMP
323 TRRLoadInfo::GetAllowInsecureRedirectToDataURI(
324 bool* aAllowInsecureRedirectToDataURI) {
325 return NS_ERROR_NOT_IMPLEMENTED;
328 NS_IMETHODIMP
329 TRRLoadInfo::SetSkipContentPolicyCheckForWebRequest(bool aSkip) {
330 return NS_ERROR_NOT_IMPLEMENTED;
333 NS_IMETHODIMP
334 TRRLoadInfo::GetSkipContentPolicyCheckForWebRequest(bool* aSkip) {
335 return NS_ERROR_NOT_IMPLEMENTED;
338 NS_IMETHODIMP
339 TRRLoadInfo::SetOriginalFrameSrcLoad(bool aOriginalFrameSrcLoad) {
340 return NS_ERROR_NOT_IMPLEMENTED;
343 NS_IMETHODIMP
344 TRRLoadInfo::GetOriginalFrameSrcLoad(bool* aOriginalFrameSrcLoad) {
345 return NS_ERROR_NOT_IMPLEMENTED;
348 NS_IMETHODIMP
349 TRRLoadInfo::GetForceInheritPrincipalDropped(bool* aResult) {
350 return NS_ERROR_NOT_IMPLEMENTED;
353 NS_IMETHODIMP
354 TRRLoadInfo::GetInnerWindowID(uint64_t* aResult) {
355 return NS_ERROR_NOT_IMPLEMENTED;
358 NS_IMETHODIMP
359 TRRLoadInfo::GetBrowsingContextID(uint64_t* aResult) {
360 return NS_ERROR_NOT_IMPLEMENTED;
363 NS_IMETHODIMP
364 TRRLoadInfo::GetWorkerAssociatedBrowsingContextID(uint64_t* aResult) {
365 return NS_ERROR_NOT_IMPLEMENTED;
368 NS_IMETHODIMP
369 TRRLoadInfo::SetWorkerAssociatedBrowsingContextID(uint64_t aResult) {
370 return NS_ERROR_NOT_IMPLEMENTED;
373 NS_IMETHODIMP
374 TRRLoadInfo::GetFrameBrowsingContextID(uint64_t* aResult) {
375 return NS_ERROR_NOT_IMPLEMENTED;
378 NS_IMETHODIMP
379 TRRLoadInfo::GetTargetBrowsingContextID(uint64_t* aResult) {
380 return NS_ERROR_NOT_IMPLEMENTED;
383 NS_IMETHODIMP
384 TRRLoadInfo::GetBrowsingContext(dom::BrowsingContext** aResult) {
385 return NS_ERROR_NOT_IMPLEMENTED;
388 NS_IMETHODIMP
389 TRRLoadInfo::GetWorkerAssociatedBrowsingContext(
390 dom::BrowsingContext** aResult) {
391 return NS_ERROR_NOT_IMPLEMENTED;
394 NS_IMETHODIMP
395 TRRLoadInfo::GetFrameBrowsingContext(dom::BrowsingContext** aResult) {
396 return NS_ERROR_NOT_IMPLEMENTED;
399 NS_IMETHODIMP
400 TRRLoadInfo::GetTargetBrowsingContext(dom::BrowsingContext** aResult) {
401 return NS_ERROR_NOT_IMPLEMENTED;
404 NS_IMETHODIMP
405 TRRLoadInfo::GetScriptableOriginAttributes(
406 JSContext* aCx, JS::MutableHandle<JS::Value> aOriginAttributes) {
407 return NS_ERROR_NOT_IMPLEMENTED;
410 NS_IMETHODIMP
411 TRRLoadInfo::ResetPrincipalToInheritToNullPrincipal() {
412 return NS_ERROR_NOT_IMPLEMENTED;
415 NS_IMETHODIMP
416 TRRLoadInfo::SetScriptableOriginAttributes(
417 JSContext* aCx, JS::Handle<JS::Value> aOriginAttributes) {
418 return NS_ERROR_NOT_IMPLEMENTED;
421 nsresult TRRLoadInfo::GetOriginAttributes(
422 mozilla::OriginAttributes* aOriginAttributes) {
423 NS_ENSURE_ARG(aOriginAttributes);
424 *aOriginAttributes = mOriginAttributes;
425 return NS_OK;
428 nsresult TRRLoadInfo::SetOriginAttributes(
429 const mozilla::OriginAttributes& aOriginAttributes) {
430 return NS_ERROR_NOT_IMPLEMENTED;
433 NS_IMETHODIMP
434 TRRLoadInfo::SetInitialSecurityCheckDone(bool aInitialSecurityCheckDone) {
435 return NS_ERROR_NOT_IMPLEMENTED;
438 NS_IMETHODIMP
439 TRRLoadInfo::GetInitialSecurityCheckDone(bool* aResult) {
440 return NS_ERROR_NOT_IMPLEMENTED;
443 NS_IMETHODIMP
444 TRRLoadInfo::AppendRedirectHistoryEntry(nsIChannel* aChannelToDeriveFrom,
445 bool aIsInternalRedirect) {
446 return NS_ERROR_NOT_IMPLEMENTED;
449 NS_IMETHODIMP
450 TRRLoadInfo::GetRedirectChainIncludingInternalRedirects(
451 JSContext* aCx, JS::MutableHandle<JS::Value> aChain) {
452 return NS_ERROR_NOT_IMPLEMENTED;
455 const nsTArray<nsCOMPtr<nsIRedirectHistoryEntry>>&
456 TRRLoadInfo::RedirectChainIncludingInternalRedirects() {
457 return mEmptyRedirectChain;
460 NS_IMETHODIMP
461 TRRLoadInfo::GetRedirectChain(JSContext* aCx,
462 JS::MutableHandle<JS::Value> aChain) {
463 return NS_ERROR_NOT_IMPLEMENTED;
466 const nsTArray<nsCOMPtr<nsIRedirectHistoryEntry>>&
467 TRRLoadInfo::RedirectChain() {
468 return mEmptyRedirectChain;
471 const nsTArray<nsCOMPtr<nsIPrincipal>>& TRRLoadInfo::AncestorPrincipals() {
472 return mEmptyPrincipals;
475 const nsTArray<uint64_t>& TRRLoadInfo::AncestorBrowsingContextIDs() {
476 return mEmptyBrowsingContextIDs;
479 void TRRLoadInfo::SetCorsPreflightInfo(const nsTArray<nsCString>& aHeaders,
480 bool aForcePreflight) {}
482 const nsTArray<nsCString>& TRRLoadInfo::CorsUnsafeHeaders() {
483 return mCorsUnsafeHeaders;
486 NS_IMETHODIMP
487 TRRLoadInfo::GetForcePreflight(bool* aForcePreflight) {
488 return NS_ERROR_NOT_IMPLEMENTED;
491 NS_IMETHODIMP
492 TRRLoadInfo::GetIsPreflight(bool* aIsPreflight) {
493 return NS_ERROR_NOT_IMPLEMENTED;
496 NS_IMETHODIMP
497 TRRLoadInfo::SetLoadTriggeredFromExternal(bool aLoadTriggeredFromExternal) {
498 return NS_ERROR_NOT_IMPLEMENTED;
501 NS_IMETHODIMP
502 TRRLoadInfo::GetLoadTriggeredFromExternal(bool* aLoadTriggeredFromExternal) {
503 return NS_ERROR_NOT_IMPLEMENTED;
506 NS_IMETHODIMP
507 TRRLoadInfo::GetServiceWorkerTaintingSynthesized(
508 bool* aServiceWorkerTaintingSynthesized) {
509 return NS_ERROR_NOT_IMPLEMENTED;
512 NS_IMETHODIMP
513 TRRLoadInfo::GetTainting(uint32_t* aTaintingOut) {
514 return NS_ERROR_NOT_IMPLEMENTED;
517 NS_IMETHODIMP
518 TRRLoadInfo::MaybeIncreaseTainting(uint32_t aTainting) {
519 return NS_ERROR_NOT_IMPLEMENTED;
522 void TRRLoadInfo::SynthesizeServiceWorkerTainting(LoadTainting aTainting) {}
524 NS_IMETHODIMP
525 TRRLoadInfo::GetDocumentHasUserInteracted(bool* aDocumentHasUserInteracted) {
526 return NS_ERROR_NOT_IMPLEMENTED;
529 NS_IMETHODIMP
530 TRRLoadInfo::SetDocumentHasUserInteracted(bool aDocumentHasUserInteracted) {
531 return NS_ERROR_NOT_IMPLEMENTED;
534 NS_IMETHODIMP
535 TRRLoadInfo::GetAllowListFutureDocumentsCreatedFromThisRedirectChain(
536 bool* aValue) {
537 return NS_ERROR_NOT_IMPLEMENTED;
540 NS_IMETHODIMP
541 TRRLoadInfo::SetAllowListFutureDocumentsCreatedFromThisRedirectChain(
542 bool aValue) {
543 return NS_ERROR_NOT_IMPLEMENTED;
546 NS_IMETHODIMP
547 TRRLoadInfo::GetNeedForCheckingAntiTrackingHeuristic(bool* aValue) {
548 return NS_ERROR_NOT_IMPLEMENTED;
551 NS_IMETHODIMP
552 TRRLoadInfo::SetNeedForCheckingAntiTrackingHeuristic(bool aValue) {
553 return NS_ERROR_NOT_IMPLEMENTED;
556 NS_IMETHODIMP
557 TRRLoadInfo::GetCspNonce(nsAString& aCspNonce) {
558 return NS_ERROR_NOT_IMPLEMENTED;
561 NS_IMETHODIMP
562 TRRLoadInfo::SetCspNonce(const nsAString& aCspNonce) {
563 return NS_ERROR_NOT_IMPLEMENTED;
566 NS_IMETHODIMP
567 TRRLoadInfo::GetIntegrityMetadata(nsAString& aIntegrityMetadata) {
568 return NS_ERROR_NOT_IMPLEMENTED;
571 NS_IMETHODIMP
572 TRRLoadInfo::SetIntegrityMetadata(const nsAString& aIntegrityMetadata) {
573 return NS_ERROR_NOT_IMPLEMENTED;
576 NS_IMETHODIMP
577 TRRLoadInfo::GetSkipContentSniffing(bool* aSkipContentSniffing) {
578 return NS_ERROR_NOT_IMPLEMENTED;
581 NS_IMETHODIMP
582 TRRLoadInfo::SetSkipContentSniffing(bool aSkipContentSniffing) {
583 return NS_ERROR_NOT_IMPLEMENTED;
586 NS_IMETHODIMP
587 TRRLoadInfo::GetIsTopLevelLoad(bool* aResult) {
588 return NS_ERROR_NOT_IMPLEMENTED;
591 NS_IMETHODIMP
592 TRRLoadInfo::GetIsFromProcessingFrameAttributes(
593 bool* aIsFromProcessingFrameAttributes) {
594 return NS_ERROR_NOT_IMPLEMENTED;
597 NS_IMETHODIMP
598 TRRLoadInfo::SetIsMediaRequest(bool aIsMediaRequest) {
599 return NS_ERROR_NOT_IMPLEMENTED;
602 NS_IMETHODIMP
603 TRRLoadInfo::GetIsMediaRequest(bool* aIsMediaRequest) {
604 return NS_ERROR_NOT_IMPLEMENTED;
607 NS_IMETHODIMP
608 TRRLoadInfo::SetIsMediaInitialRequest(bool aIsMediaInitialRequest) {
609 return NS_ERROR_NOT_IMPLEMENTED;
612 NS_IMETHODIMP
613 TRRLoadInfo::GetIsMediaInitialRequest(bool* aIsMediaInitialRequest) {
614 return NS_ERROR_NOT_IMPLEMENTED;
617 NS_IMETHODIMP
618 TRRLoadInfo::SetIsFromObjectOrEmbed(bool aIsFromObjectOrEmbed) {
619 return NS_ERROR_NOT_IMPLEMENTED;
622 NS_IMETHODIMP
623 TRRLoadInfo::GetIsFromObjectOrEmbed(bool* aIsFromObjectOrEmbed) {
624 return NS_ERROR_NOT_IMPLEMENTED;
627 NS_IMETHODIMP
628 TRRLoadInfo::GetShouldSkipCheckForBrokenURLOrZeroSized(
629 bool* aShouldSkipCheckForBrokenURLOrZeroSized) {
630 return NS_ERROR_NOT_IMPLEMENTED;
633 NS_IMETHODIMP
634 TRRLoadInfo::GetResultPrincipalURI(nsIURI** aURI) {
635 nsCOMPtr<nsIURI> uri = mResultPrincipalURI;
636 uri.forget(aURI);
637 return NS_OK;
640 NS_IMETHODIMP
641 TRRLoadInfo::SetResultPrincipalURI(nsIURI* aURI) {
642 mResultPrincipalURI = aURI;
643 return NS_OK;
646 NS_IMETHODIMP
647 TRRLoadInfo::GetChannelCreationOriginalURI(nsIURI** aURI) {
648 return NS_ERROR_NOT_IMPLEMENTED;
651 NS_IMETHODIMP
652 TRRLoadInfo::SetChannelCreationOriginalURI(nsIURI* aURI) {
653 return NS_ERROR_NOT_IMPLEMENTED;
656 NS_IMETHODIMP
657 TRRLoadInfo::SetRequestBlockingReason(uint32_t aReason) {
658 return NS_ERROR_NOT_IMPLEMENTED;
660 NS_IMETHODIMP
661 TRRLoadInfo::GetRequestBlockingReason(uint32_t* aReason) {
662 return NS_ERROR_NOT_IMPLEMENTED;
665 void TRRLoadInfo::SetClientInfo(const ClientInfo& aClientInfo) {}
667 const Maybe<ClientInfo>& TRRLoadInfo::GetClientInfo() { return mClientInfo; }
669 void TRRLoadInfo::GiveReservedClientSource(
670 UniquePtr<ClientSource>&& aClientSource) {}
672 UniquePtr<ClientSource> TRRLoadInfo::TakeReservedClientSource() {
673 return nullptr;
676 void TRRLoadInfo::SetReservedClientInfo(const ClientInfo& aClientInfo) {}
678 void TRRLoadInfo::OverrideReservedClientInfoInParent(
679 const ClientInfo& aClientInfo) {}
681 const Maybe<ClientInfo>& TRRLoadInfo::GetReservedClientInfo() {
682 return mReservedClientInfo;
685 void TRRLoadInfo::SetInitialClientInfo(const ClientInfo& aClientInfo) {}
687 const Maybe<ClientInfo>& TRRLoadInfo::GetInitialClientInfo() {
688 return mInitialClientInfo;
691 void TRRLoadInfo::SetController(const ServiceWorkerDescriptor& aServiceWorker) {
694 void TRRLoadInfo::ClearController() {}
696 const Maybe<ServiceWorkerDescriptor>& TRRLoadInfo::GetController() {
697 return mController;
700 void TRRLoadInfo::SetPerformanceStorage(
701 PerformanceStorage* aPerformanceStorage) {}
703 PerformanceStorage* TRRLoadInfo::GetPerformanceStorage() { return nullptr; }
705 NS_IMETHODIMP
706 TRRLoadInfo::GetCspEventListener(nsICSPEventListener** aCSPEventListener) {
707 return NS_ERROR_NOT_IMPLEMENTED;
710 NS_IMETHODIMP
711 TRRLoadInfo::SetCspEventListener(nsICSPEventListener* aCSPEventListener) {
712 return NS_ERROR_NOT_IMPLEMENTED;
715 already_AddRefed<nsIContentSecurityPolicy> TRRLoadInfo::GetCsp() {
716 return nullptr;
719 already_AddRefed<nsIContentSecurityPolicy> TRRLoadInfo::GetPreloadCsp() {
720 return nullptr;
723 already_AddRefed<nsIContentSecurityPolicy> TRRLoadInfo::GetCspToInherit() {
724 return nullptr;
727 NS_IMETHODIMP
728 TRRLoadInfo::GetHttpsOnlyStatus(uint32_t* aHttpsOnlyStatus) {
729 return NS_ERROR_NOT_IMPLEMENTED;
732 NS_IMETHODIMP
733 TRRLoadInfo::SetHttpsOnlyStatus(uint32_t aHttpsOnlyStatus) {
734 return NS_ERROR_NOT_IMPLEMENTED;
737 NS_IMETHODIMP
738 TRRLoadInfo::GetHstsStatus(bool* aHstsStatus) {
739 return NS_ERROR_NOT_IMPLEMENTED;
742 NS_IMETHODIMP
743 TRRLoadInfo::SetHstsStatus(bool aHstsStatus) {
744 return NS_ERROR_NOT_IMPLEMENTED;
747 NS_IMETHODIMP
748 TRRLoadInfo::GetHasValidUserGestureActivation(
749 bool* aHasValidUserGestureActivation) {
750 return NS_ERROR_NOT_IMPLEMENTED;
753 NS_IMETHODIMP
754 TRRLoadInfo::SetHasValidUserGestureActivation(
755 bool aHasValidUserGestureActivation) {
756 return NS_ERROR_NOT_IMPLEMENTED;
759 NS_IMETHODIMP
760 TRRLoadInfo::GetInternalContentPolicyType(nsContentPolicyType* aResult) {
761 *aResult = mInternalContentPolicyType;
762 return NS_OK;
765 NS_IMETHODIMP
766 TRRLoadInfo::GetAllowDeprecatedSystemRequests(
767 bool* aAllowDeprecatedSystemRequests) {
768 return NS_ERROR_NOT_IMPLEMENTED;
771 NS_IMETHODIMP
772 TRRLoadInfo::SetAllowDeprecatedSystemRequests(
773 bool aAllowDeprecatedSystemRequests) {
774 return NS_ERROR_NOT_IMPLEMENTED;
777 NS_IMETHODIMP
778 TRRLoadInfo::GetIsUserTriggeredSave(bool* aIsUserTriggeredSave) {
779 return NS_ERROR_NOT_IMPLEMENTED;
782 NS_IMETHODIMP
783 TRRLoadInfo::SetIsUserTriggeredSave(bool aIsUserTriggeredSave) {
784 return NS_ERROR_NOT_IMPLEMENTED;
787 NS_IMETHODIMP
788 TRRLoadInfo::GetIsInDevToolsContext(bool* aIsInDevToolsContext) {
789 return NS_ERROR_NOT_IMPLEMENTED;
792 NS_IMETHODIMP
793 TRRLoadInfo::SetIsInDevToolsContext(bool aIsInDevToolsContext) {
794 return NS_ERROR_NOT_IMPLEMENTED;
797 NS_IMETHODIMP
798 TRRLoadInfo::GetParserCreatedScript(bool* aParserCreatedScript) {
799 return NS_ERROR_NOT_IMPLEMENTED;
802 NS_IMETHODIMP
803 TRRLoadInfo::SetParserCreatedScript(bool aParserCreatedScript) {
804 return NS_ERROR_NOT_IMPLEMENTED;
807 NS_IMETHODIMP
808 TRRLoadInfo::GetLoadingEmbedderPolicy(
809 nsILoadInfo::CrossOriginEmbedderPolicy* aOutPolicy) {
810 return NS_ERROR_NOT_IMPLEMENTED;
813 NS_IMETHODIMP
814 TRRLoadInfo::SetLoadingEmbedderPolicy(
815 nsILoadInfo::CrossOriginEmbedderPolicy aPolicy) {
816 return NS_ERROR_NOT_IMPLEMENTED;
819 NS_IMETHODIMP
820 TRRLoadInfo::GetIsOriginTrialCoepCredentiallessEnabledForTopLevel(
821 bool* aIsOriginTrialCoepCredentiallessEnabledForTopLevel) {
822 return NS_ERROR_NOT_IMPLEMENTED;
825 NS_IMETHODIMP
826 TRRLoadInfo::SetIsOriginTrialCoepCredentiallessEnabledForTopLevel(
827 bool aIsOriginTrialCoepCredentiallessEnabledForTopLevel) {
828 return NS_ERROR_NOT_IMPLEMENTED;
831 NS_IMETHODIMP
832 TRRLoadInfo::GetUnstrippedURI(nsIURI** aURI) {
833 return NS_ERROR_NOT_IMPLEMENTED;
836 NS_IMETHODIMP
837 TRRLoadInfo::SetUnstrippedURI(nsIURI* aURI) { return NS_ERROR_NOT_IMPLEMENTED; }
839 nsIInterceptionInfo* TRRLoadInfo::InterceptionInfo() { return nullptr; }
840 void TRRLoadInfo::SetInterceptionInfo(nsIInterceptionInfo* aPrincipla) {}
842 NS_IMETHODIMP
843 TRRLoadInfo::GetHasInjectedCookieForCookieBannerHandling(
844 bool* aHasInjectedCookieForCookieBannerHandling) {
845 return NS_ERROR_NOT_IMPLEMENTED;
848 NS_IMETHODIMP
849 TRRLoadInfo::SetHasInjectedCookieForCookieBannerHandling(
850 bool aHasInjectedCookieForCookieBannerHandling) {
851 return NS_ERROR_NOT_IMPLEMENTED;
854 NS_IMETHODIMP
855 TRRLoadInfo::GetWasSchemelessInput(bool* aWasSchemelessInput) {
856 return NS_ERROR_NOT_IMPLEMENTED;
859 NS_IMETHODIMP
860 TRRLoadInfo::SetWasSchemelessInput(bool aWasSchemelessInput) {
861 return NS_ERROR_NOT_IMPLEMENTED;
864 } // namespace net
865 } // namespace mozilla