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

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: 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: Source/modules/fetch/FetchResponseData.h
diff --git a/Source/modules/fetch/FetchResponseData.h b/Source/modules/fetch/FetchResponseData.h
index 0fbffd20b9f1df7c1494341963ecd745ea4a2606..5f1bf84b402dbed835bae02b737ee4e6975ed0f6 100644
--- a/Source/modules/fetch/FetchResponseData.h
+++ b/Source/modules/fetch/FetchResponseData.h
@@ -24,7 +24,12 @@ class MODULES_EXPORT FetchResponseData final : public GarbageCollectedFinalized<
public:
// "A response has an associated type which is one of basic, CORS, default,
yhirano 2015/08/07 14:22:02 Please update the comment.
horo 2015/08/07 15:39:54 Done.
// error, and opaque. Unless stated otherwise, it is default."
- enum Type { BasicType, CORSType, DefaultType, ErrorType, OpaqueType };
+ enum Type { BasicType,
falken 2015/08/07 07:39:12 this formatting looks wrong
horo 2015/08/07 09:19:33 Done.
+ 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 +41,7 @@ public:
FetchResponseData* createBasicFilteredResponse();
FetchResponseData* createCORSFilteredResponse();
FetchResponseData* createOpaqueFilteredResponse();
+ FetchResponseData* createOpaqueRedirectFilteredResponse();
FetchResponseData* clone(ExecutionContext*);

Powered by Google App Engine
This is Rietveld 408576698