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

Side by Side Diff: third_party/WebKit/Source/modules/fetch/Request.idl

Issue 1391583002: Introduce "navigate" mode in Requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // http://fetch.spec.whatwg.org/#request-class 5 // http://fetch.spec.whatwg.org/#request-class
6 6
7 typedef (Request or USVString) RequestInfo; 7 typedef (Request or USVString) RequestInfo;
8 8
9 enum RequestContext { 9 enum RequestContext {
10 "", "audio", "beacon", "cspreport", "download", "embed", "eventsource", "fav icon", 10 "", "audio", "beacon", "cspreport", "download", "embed", "eventsource", "fav icon",
11 "fetch", "font", "form", "frame", "hyperlink", "iframe", "image", "imageset" , "import", 11 "fetch", "font", "form", "frame", "hyperlink", "iframe", "image", "imageset" , "import",
12 "internal", "location", "manifest", "metarefresh", "object", "ping", "plugin ", 12 "internal", "location", "manifest", "metarefresh", "object", "ping", "plugin ",
13 "prefetch", "script", "serviceworker", "sharedworker", 13 "prefetch", "script", "serviceworker", "sharedworker",
14 "subresource", "style", "track", "video", "worker", "xmlhttprequest", "xslt" 14 "subresource", "style", "track", "video", "worker", "xmlhttprequest", "xslt"
15 }; 15 };
16 enum RequestMode { "same-origin", "no-cors", "cors" }; 16 enum RequestMode { "navigate", "same-origin", "no-cors", "cors" };
17 enum RequestCredentials { "omit", "same-origin", "include" }; 17 enum RequestCredentials { "omit", "same-origin", "include" };
18 enum RequestRedirect { "follow", "error", "manual" }; 18 enum RequestRedirect { "follow", "error", "manual" };
19 19
20 [ 20 [
21 Constructor(RequestInfo input, optional Dictionary requestInitDict), 21 Constructor(RequestInfo input, optional Dictionary requestInitDict),
22 ConstructorCallWith=ScriptState, 22 ConstructorCallWith=ScriptState,
23 Exposed=(Window,Worker), 23 Exposed=(Window,Worker),
24 RaisesException=Constructor, 24 RaisesException=Constructor,
25 ActiveDOMObject, 25 ActiveDOMObject,
26 GarbageCollected, 26 GarbageCollected,
27 TypeChecking=Interface, 27 TypeChecking=Interface,
28 ] interface Request { 28 ] interface Request {
29 readonly attribute ByteString method; 29 readonly attribute ByteString method;
30 readonly attribute USVString url; 30 readonly attribute USVString url;
31 readonly attribute Headers headers; 31 readonly attribute Headers headers;
32 readonly attribute DOMString referrer; 32 readonly attribute DOMString referrer;
33 readonly attribute RequestMode mode; 33 readonly attribute RequestMode mode;
34 readonly attribute RequestCredentials credentials; 34 readonly attribute RequestCredentials credentials;
35 readonly attribute RequestRedirect redirect; 35 readonly attribute RequestRedirect redirect;
36 readonly attribute DOMString integrity; 36 readonly attribute DOMString integrity;
37 37
38 [RaisesException] Request clone(); 38 [RaisesException] Request clone();
39 }; 39 };
40 40
41 Request implements Body; 41 Request implements Body;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Request.cpp ('k') | third_party/WebKit/Source/modules/fetch/RequestInit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698