Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2021)

Unified Diff: public/platform/WebURLRequest.h

Issue 1265133002: [1/3 blink] Support redirect option of Request and "opaqueredirect" response type. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: public/platform/WebURLRequest.h
diff --git a/public/platform/WebURLRequest.h b/public/platform/WebURLRequest.h
index 86a7b1fe84acf49e1e1a49bb2fc2893e78ce1645..acfe12991ba38d8d60bfe55ed97bdde30be51089 100644
--- a/public/platform/WebURLRequest.h
+++ b/public/platform/WebURLRequest.h
@@ -123,6 +123,12 @@ public:
FetchCredentialsModeInclude
};
+ enum FetchRedirectMode {
+ FetchRedirectModeFollow,
+ FetchRedirectModeError,
+ FetchRedirectModeManual
+ };
+
// Used to report performance metrics timed from the UI action that
// triggered them (as opposed to navigation start time used in the
// Navigation Timing API).
@@ -258,6 +264,10 @@ public:
BLINK_PLATFORM_EXPORT FetchCredentialsMode fetchCredentialsMode() const;
BLINK_PLATFORM_EXPORT void setFetchCredentialsMode(FetchCredentialsMode);
+ // The redirect mode which is used in Fetch API.
+ BLINK_PLATFORM_EXPORT FetchRedirectMode fetchRedirectMode() const;
+ BLINK_PLATFORM_EXPORT void setFetchRedirectMode(FetchRedirectMode);
+
// Extra data associated with the underlying resource request. Resource
// requests can be copied. If non-null, each copy of a resource requests
// holds a pointer to the extra data, and the extra data pointer will be
« no previous file with comments | « public/platform/WebServiceWorkerResponseType.h ('k') | public/platform/modules/serviceworker/WebServiceWorkerRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698