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

Unified Diff: Source/modules/serviceworkers/FetchHeaderList.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/FetchEvent.cpp ('k') | Source/modules/serviceworkers/FetchHeaderList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/FetchHeaderList.h
diff --git a/Source/modules/serviceworkers/FetchHeaderList.h b/Source/modules/serviceworkers/FetchHeaderList.h
deleted file mode 100644
index f81b35c3ee4d5c9c3486e0a6db46310a6a3b7ffa..0000000000000000000000000000000000000000
--- a/Source/modules/serviceworkers/FetchHeaderList.h
+++ /dev/null
@@ -1,56 +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 FetchHeaderList_h
-#define FetchHeaderList_h
-
-#include "platform/heap/Handle.h"
-#include "wtf/OwnPtr.h"
-#include "wtf/PassRefPtr.h"
-#include "wtf/Vector.h"
-#include "wtf/text/WTFString.h"
-#include <utility>
-
-namespace blink {
-
-class Header;
-
-// http://fetch.spec.whatwg.org/#terminology-headers
-class FetchHeaderList final : public GarbageCollectedFinalized<FetchHeaderList> {
-public:
- typedef std::pair<String, String> Header;
- static FetchHeaderList* create();
- FetchHeaderList* createCopy();
-
- ~FetchHeaderList();
- void append(const String&, const String&);
- void set(const String&, const String&);
- // FIXME: Implement parse()
- // FIXME: Implement extractMIMEType()
-
- size_t size() const;
- void remove(const String&);
- bool get(const String&, String&) const;
- void getAll(const String&, Vector<String>&) const;
- bool has(const String&) const;
- void clearList();
-
- bool containsNonSimpleHeader() const;
-
- const Vector<OwnPtr<Header> >& list() const { return m_headerList; }
- const Header& entry(size_t index) const { return *(m_headerList[index].get()); }
-
- static bool isValidHeaderName(const String&);
- static bool isValidHeaderValue(const String&);
-
- void trace(Visitor*) { }
-
-private:
- FetchHeaderList();
- Vector<OwnPtr<Header> > m_headerList;
-};
-
-} // namespace blink
-
-#endif // FetchHeaderList_h
« no previous file with comments | « Source/modules/serviceworkers/FetchEvent.cpp ('k') | Source/modules/serviceworkers/FetchHeaderList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698