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

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

Issue 2806663002: Remove RequestContext from Request.idl (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // https://fetch.spec.whatwg.org/#request-class 5 // https://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 {
10 "", "audio", "beacon", "cspreport", "download", "embed", "eventsource", "fav icon",
11 "fetch", "font", "form", "frame", "hyperlink", "iframe", "image", "imageset" , "import",
12 "internal", "location", "manifest", "metarefresh", "object", "ping", "plugin ",
13 "prefetch", "script", "serviceworker", "sharedworker",
14 "subresource", "style", "track", "video", "worker", "xmlhttprequest", "xslt"
15 };
16 enum RequestMode { "navigate", "same-origin", "no-cors", "cors" }; 9 enum RequestMode { "navigate", "same-origin", "no-cors", "cors" };
17 enum RequestCredentials { "omit", "same-origin", "include" }; 10 enum RequestCredentials { "omit", "same-origin", "include" };
18 enum RequestRedirect { "follow", "error", "manual" }; 11 enum RequestRedirect { "follow", "error", "manual" };
19 12
20 // https://w3c.github.io/webappsec-referrer-policy/#referrer-policies 13 // https://w3c.github.io/webappsec-referrer-policy/#referrer-policies
21 14
22 enum ReferrerPolicy { 15 enum ReferrerPolicy {
23 "", 16 "",
24 "no-referrer", 17 "no-referrer",
25 "no-referrer-when-downgrade", 18 "no-referrer-when-downgrade",
(...skipping 17 matching lines...) Expand all
43 [ImplementedAs=getReferrerPolicy] readonly attribute ReferrerPolicy referrer Policy; 36 [ImplementedAs=getReferrerPolicy] readonly attribute ReferrerPolicy referrer Policy;
44 readonly attribute RequestMode mode; 37 readonly attribute RequestMode mode;
45 readonly attribute RequestCredentials credentials; 38 readonly attribute RequestCredentials credentials;
46 readonly attribute RequestRedirect redirect; 39 readonly attribute RequestRedirect redirect;
47 readonly attribute DOMString integrity; 40 readonly attribute DOMString integrity;
48 41
49 [RaisesException, CallWith=ScriptState] Request clone(); 42 [RaisesException, CallWith=ScriptState] Request clone();
50 }; 43 };
51 44
52 Request implements Body; 45 Request implements Body;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698