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

Unified Diff: Source/modules/serviceworkers/Response.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/serviceworkers/Response.cpp ('k') | Source/modules/serviceworkers/ResponseInit.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Response.idl
diff --git a/Source/modules/serviceworkers/Response.idl b/Source/modules/serviceworkers/Response.idl
deleted file mode 100644
index 601d2b599d637f41a5022685f61e418f77dcc02c..0000000000000000000000000000000000000000
--- a/Source/modules/serviceworkers/Response.idl
+++ /dev/null
@@ -1,31 +0,0 @@
-// 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/#response-class
-
-enum ResponseType { "basic", "cors", "default", "error", "opaque" };
-
-// FIXME: Add union types: FormData and URLSearchParams
-typedef (Blob or ArrayBuffer or ArrayBufferView or USVString) BodyInit;
-
-[
- Constructor(optional BodyInit body, optional Dictionary responseInitDict),
- ConstructorCallWith=ExecutionContext,
- Exposed(Window GlobalFetch, DedicatedWorker GlobalFetch, SharedWorker GlobalFetch, ServiceWorker ServiceWorker),
- RaisesException=Constructor,
- ActiveDOMObject,
- GarbageCollected,
- TypeChecking=Interface,
-] interface Response {
- // FIXME: Implement redirect().
- readonly attribute ResponseType type;
- readonly attribute USVString url;
- readonly attribute unsigned short status;
- readonly attribute ByteString statusText;
- readonly attribute Headers headers;
-
- [RaisesException] Response clone();
-};
-
-Response implements Body;
« no previous file with comments | « Source/modules/serviceworkers/Response.cpp ('k') | Source/modules/serviceworkers/ResponseInit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698