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

Unified Diff: Source/modules/fetch/Request.idl

Issue 1060033002: Implement Request.context for Fetch API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/Request.idl
diff --git a/Source/modules/fetch/Request.idl b/Source/modules/fetch/Request.idl
index 34332105e07fdc3586e36fada6ece6982da89f26..87491b90d227a3e084bfb5fdf3eb726f9650094c 100644
--- a/Source/modules/fetch/Request.idl
+++ b/Source/modules/fetch/Request.idl
@@ -6,6 +6,13 @@
typedef (Request or USVString) RequestInfo;
+enum RequestContext {
+ "", "audio", "beacon", "cspreport", "download", "embed", "eventsource", "favicon",
+ "fetch", "font", "form", "frame", "hyperlink", "iframe", "image", "imageset", "import",
+ "internal", "location", "manifest", "metarefresh", "object", "ping", "plugin",
+ "prefetch", "script", "serviceworker", "sharedworker",
+ "subresource", "style", "track", "video", "worker", "xmlhttprequest", "xslt"
+};
enum RequestMode { "same-origin", "no-cors", "cors" };
enum RequestCredentials { "omit", "same-origin", "include" };
@@ -21,15 +28,12 @@ enum RequestCredentials { "omit", "same-origin", "include" };
readonly attribute ByteString method;
readonly attribute USVString url;
readonly attribute Headers headers;
-
+ readonly attribute RequestContext context;
readonly attribute DOMString referrer;
readonly attribute RequestMode mode;
readonly attribute RequestCredentials credentials;
[RaisesException] Request clone();
-
- // FIXME: Implement the following:
- // readonly attribute RequestContext context;
};
Request implements Body;

Powered by Google App Engine
This is Rietveld 408576698