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

Unified Diff: Source/modules/serviceworkers/ResponseInit.h

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.idl ('k') | Source/modules/serviceworkers/ResponseTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/ResponseInit.h
diff --git a/Source/modules/serviceworkers/ResponseInit.h b/Source/modules/serviceworkers/ResponseInit.h
deleted file mode 100644
index 6f0cd712474f1b3367d377da02fa06f726814b21..0000000000000000000000000000000000000000
--- a/Source/modules/serviceworkers/ResponseInit.h
+++ /dev/null
@@ -1,49 +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.
-
-#ifndef ResponseInit_h
-#define ResponseInit_h
-
-#include "bindings/core/v8/Dictionary.h"
-#include "modules/serviceworkers/Headers.h"
-#include "platform/heap/Handle.h"
-#include "wtf/RefPtr.h"
-
-namespace blink {
-
-// FIXME: Use IDL dictionary instead of this class.
-class ResponseInit {
- STACK_ALLOCATED();
-public:
- ResponseInit()
- : status(200)
- , statusText("OK")
- {
- }
- explicit ResponseInit(const Dictionary& options, ExceptionState& exceptionState)
- : status(200)
- , statusText("OK")
- {
- DictionaryHelper::get(options, "status", status);
- // FIXME: Spec uses ByteString for statusText. http://crbug.com/347426
- DictionaryHelper::get(options, "statusText", statusText);
- DictionaryHelper::get(options, "headers", headers);
- if (!headers) {
- Vector<Vector<String> > headersVector;
- if (DictionaryHelper::get(options, "headers", headersVector, exceptionState))
- headers = Headers::create(headersVector, exceptionState);
- else
- DictionaryHelper::get(options, "headers", headersDictionary);
- }
- }
-
- unsigned short status;
- String statusText;
- Member<Headers> headers;
- Dictionary headersDictionary;
-};
-
-}
-
-#endif // ResponseInit_h
« no previous file with comments | « Source/modules/serviceworkers/Response.idl ('k') | Source/modules/serviceworkers/ResponseTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698