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

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..99951c0367ef5d441659dbd754fc8d62cdbaa26a 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",
hiroshige 2015/04/09 17:43:21 nit: indent with 4 spaces?
shiva.jm 2015/04/10 09:27:10 Done.
+ "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,7 +28,7 @@ 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;
@@ -31,9 +38,6 @@ enum RequestCredentials { "omit", "same-origin", "include" };
// FIXME: Move this attribute into Body when the extended-attribute
// is removed.
[RuntimeEnabled=ExperimentalStream] readonly attribute ReadableByteStream body;
-
- // FIXME: Implement the following:
- // readonly attribute RequestContext context;
};
Request implements Body;

Powered by Google App Engine
This is Rietveld 408576698