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

Unified Diff: Source/modules/fetch/FetchResponseData.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
« no previous file with comments | « Source/modules/fetch/FetchRequestData.cpp ('k') | Source/modules/fetch/FetchResponseData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/fetch/FetchResponseData.h
diff --git a/Source/modules/fetch/FetchResponseData.h b/Source/modules/fetch/FetchResponseData.h
index 0fbffd20b9f1df7c1494341963ecd745ea4a2606..700c5a39df4ea13254e733ed9f9f8d526050456c 100644
--- a/Source/modules/fetch/FetchResponseData.h
+++ b/Source/modules/fetch/FetchResponseData.h
@@ -23,8 +23,9 @@ class MODULES_EXPORT FetchResponseData final : public GarbageCollectedFinalized<
WTF_MAKE_NONCOPYABLE(FetchResponseData);
public:
// "A response has an associated type which is one of basic, CORS, default,
- // error, and opaque. Unless stated otherwise, it is default."
- enum Type { BasicType, CORSType, DefaultType, ErrorType, OpaqueType };
+ // error, opaque, and opaqueredirect. Unless stated otherwise, it is
+ // default."
+ enum Type { BasicType, CORSType, DefaultType, ErrorType, OpaqueType, OpaqueRedirectType };
// "A response can have an associated termination reason which is one of
// end-user abort, fatal, and timeout."
enum TerminationReason { EndUserAbortTermination, FatalTermination, TimeoutTermination };
@@ -36,6 +37,7 @@ public:
FetchResponseData* createBasicFilteredResponse();
FetchResponseData* createCORSFilteredResponse();
FetchResponseData* createOpaqueFilteredResponse();
+ FetchResponseData* createOpaqueRedirectFilteredResponse();
FetchResponseData* clone(ExecutionContext*);
« no previous file with comments | « Source/modules/fetch/FetchRequestData.cpp ('k') | Source/modules/fetch/FetchResponseData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698