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

Side by Side Diff: Source/modules/serviceworkers/Request.idl

Issue 795323003: Move Fetch API releted code to modules/fetch. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 | « Source/modules/serviceworkers/Request.cpp ('k') | Source/modules/serviceworkers/RequestInit.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // http://fetch.spec.whatwg.org/#request-class
6
7 typedef (Request or USVString) RequestInfo;
8
9 enum RequestMode { "same-origin", "no-cors", "cors" };
10 enum RequestCredentials { "omit", "same-origin", "include" };
11
12 [
13 Constructor(RequestInfo input, optional Dictionary requestInitDict),
14 ConstructorCallWith=ExecutionContext,
15 Exposed(Window GlobalFetch, DedicatedWorker GlobalFetch, SharedWorker Global Fetch, ServiceWorker ServiceWorker),
16 RaisesException=Constructor,
17 ActiveDOMObject,
18 GarbageCollected,
19 TypeChecking=Interface,
20 ] interface Request {
21 readonly attribute ByteString method;
22 readonly attribute USVString url;
23 readonly attribute Headers headers;
24
25 readonly attribute DOMString referrer;
26 readonly attribute RequestMode mode;
27 readonly attribute RequestCredentials credentials;
28
29 [RaisesException] Request clone();
30
31 // FIXME: Implement the following:
32 // readonly attribute RequestContext context;
33 };
34
35 Request implements Body;
OLDNEW
« no previous file with comments | « Source/modules/serviceworkers/Request.cpp ('k') | Source/modules/serviceworkers/RequestInit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698