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

Unified Diff: public/platform/WebURLRequest.h

Issue 1143083002: Implement request's redirect mode and RequestRedirect for Fetch (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « public/platform/WebServiceWorkerRequest.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebURLRequest.h
diff --git a/public/platform/WebURLRequest.h b/public/platform/WebURLRequest.h
index 86a7b1fe84acf49e1e1a49bb2fc2893e78ce1645..b6596be9e222ae7fed59dbe7f528a7b47d5a7b5e 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 will be passed to the ServiceWorker.
+ 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/WebServiceWorkerRequest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698