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

Unified Diff: Source/modules/serviceworkers/Request.idl

Issue 304053003: ServiceWorker: support Request.{url,method,origin,headers} [blink] (1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 7 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 | « Source/modules/serviceworkers/Request.cpp ('k') | Source/modules/serviceworkers/RequestInit.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Request.idl
diff --git a/Source/modules/serviceworkers/Response.idl b/Source/modules/serviceworkers/Request.idl
similarity index 46%
copy from Source/modules/serviceworkers/Response.idl
copy to Source/modules/serviceworkers/Request.idl
index 67617a6bfa678fda754da02bec1b90f186a1e75b..96131c5c1350a8d6c9ac6e21b499056f077b4c5d 100644
--- a/Source/modules/serviceworkers/Response.idl
+++ b/Source/modules/serviceworkers/Request.idl
@@ -2,21 +2,27 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#response-objects
-// FIXME: Split this idl/impl into AbstractResponse and Response.
+// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#request-objects
+
[
- Constructor(optional Dictionary responseInitDict),
+ Constructor(optional Dictionary requestInitDict),
RuntimeEnabled=ServiceWorker,
Exposed=ServiceWorker
-] interface Response {
- readonly attribute unsigned short status;
-
+] interface Request {
+ attribute DOMString url;
// FIXME: Spec uses ByteString for this. We must perform the DOMString -> ByteString conversion manually (crbug.com/347426).
- readonly attribute DOMString statusText;
-
+ attribute DOMString method;
+ readonly attribute DOMString origin;
readonly attribute HeaderMap headers;
// FIXME: Implement the following:
- // attribute DOMString url;
- // Promise<Blob> toBlob();
+ // attribute unsigned long timeout;
+ // readonly attribute Mode mode;
+ // attribute boolean synchronous;
+ // readonly attribute unsigned long redirectCount;
+ // attribute boolean forcePreflight;
+ // attribute boolean forceSameOrigin;
+ // attribute boolean omitCredentials;
+ // readonly attribute DOMString referrer;
+ // attribute any body;
};
« 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