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

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 4aacac79c05f6cdeb5cafdd0637caf4d89f85f72..02870cf541ff276890f9f6d3a611724e7bbc6d8f 100644
--- a/Source/modules/fetch/Request.idl
+++ b/Source/modules/fetch/Request.idl
@@ -8,6 +8,10 @@ typedef (Request or USVString) RequestInfo;
enum RequestMode { "same-origin", "no-cors", "cors" };
enum RequestCredentials { "omit", "same-origin", "include" };
+enum RequestContext { "", "audio", "beacon", "cspreport", "download", "embed", "eventsource", "favicon",
jsbell 2015/04/06 17:04:15 Put this above RequestMode to match the spec order
shiva.jm 2015/04/09 09:16:22 Done.
+"fetch", "font", "form", "frame", "hyperlink", "iframe", "image", "imageset", "import", "internal",
jsbell 2015/04/06 17:04:15 Can you indent these continuation lines? Maybe tr
shiva.jm 2015/04/09 09:16:22 Done.
+"location", "manifest", "metarefresh", "object", "ping", "plugin", "prefetch", "script", "serviceworker",
+"sharedworker", "subresource", "style", "track", "video", "worker", "xmlhttprequest", "xslt" };
[
Constructor(RequestInfo input, optional Dictionary requestInitDict),
@@ -32,8 +36,7 @@ enum RequestCredentials { "omit", "same-origin", "include" };
// is removed.
[RuntimeEnabled=ExperimentalStream] readonly attribute ReadableByteStream body;
- // FIXME: Implement the following:
- // readonly attribute RequestContext context;
+ readonly attribute RequestContext context;
jsbell 2015/04/06 17:04:15 Move above referrer to match the attribute order i
shiva.jm 2015/04/09 09:16:22 Done.
};
Request implements Body;

Powered by Google App Engine
This is Rietveld 408576698