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

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

Issue 287363004: ServiceWorker: support Response.{status,statusText,headers} [blink] (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/modules/serviceworkers/HeaderMapForEachCallback.h
diff --git a/Source/modules/serviceworkers/HeaderMapForEachCallback.h b/Source/modules/serviceworkers/HeaderMapForEachCallback.h
new file mode 100644
index 0000000000000000000000000000000000000000..7991c2376fe34b46bbb6373e8833e648f5785926
--- /dev/null
+++ b/Source/modules/serviceworkers/HeaderMapForEachCallback.h
@@ -0,0 +1,23 @@
+// 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 HeaderMapForEachCallback_h
+#define HeaderMapForEachCallback_h
+
+#include "bindings/v8/ScriptValue.h"
+
+namespace WebCore {
+
+class HeaderMap;
+
+class HeaderMapForEachCallback {
+public:
+ virtual ~HeaderMapForEachCallback() { }
+ virtual bool handleItem(ScriptValue thisValue, const String& value, const String& key, HeaderMap*) = 0;
+ virtual bool handleItem(const String& value, const String& key, HeaderMap*) = 0;
+};
+
+} // namespace WebCore
+
+#endif // HeaderMapForEachCallback_h

Powered by Google App Engine
This is Rietveld 408576698