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

Unified Diff: modules/fetch/Request.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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 | « modules/fetch/Headers.idl ('k') | modules/fetch/Response.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/fetch/Request.idl
diff --git a/modules/fetch/Request.idl b/modules/fetch/Request.idl
new file mode 100644
index 0000000000000000000000000000000000000000..f545af9134096661a5b49e6e4bb0a0e5f912e45a
--- /dev/null
+++ b/modules/fetch/Request.idl
@@ -0,0 +1,39 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// http://fetch.spec.whatwg.org/#request-class
+
+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" };
+
+[
+ Constructor(RequestInfo input, optional Dictionary requestInitDict),
+ ConstructorCallWith=ScriptState,
+ Exposed=(Window,Worker),
+ RaisesException=Constructor,
+ ActiveDOMObject,
+ GarbageCollected,
+ TypeChecking=Interface,
+] interface Request {
+ readonly attribute ByteString method;
+ readonly attribute USVString url;
+ readonly attribute Headers headers;
+ [DeprecateAs=FetchAPIRequestContext] readonly attribute RequestContext context;
+ readonly attribute DOMString referrer;
+ readonly attribute RequestMode mode;
+ readonly attribute RequestCredentials credentials;
+
+ [RaisesException] Request clone();
+};
+
+Request implements Body;
« no previous file with comments | « modules/fetch/Headers.idl ('k') | modules/fetch/Response.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698