Chromium Code Reviews| Index: Source/platform/CommaDelimitedParser.h |
| diff --git a/Source/platform/CommaDelimitedParser.h b/Source/platform/CommaDelimitedParser.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f9f8a62e7e107fd528d8b89225cf691ec201f0ee |
| --- /dev/null |
| +++ b/Source/platform/CommaDelimitedParser.h |
| @@ -0,0 +1,26 @@ |
| +// Copyright 2015 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 CommaDelimitedParser_h |
| +#define CommaDelimitedParser_h |
| + |
| +#include "platform/PlatformExport.h" |
| +#include "wtf/HashMap.h" |
| +#include "wtf/text/StringHash.h" |
| + |
| +namespace blink { |
| + |
| +class CommaDelimitedParser { |
|
Mike West
2015/02/27 08:53:41
I'm not sure this is a good name. It does parse a
|
| +public: |
| + PLATFORM_EXPORT CommaDelimitedParser(String); |
| + |
| + PLATFORM_EXPORT bool contains(String); |
| + |
| +private: |
| + HashMap<String, bool, CaseFoldingHash> m_map; |
|
Mike West
2015/02/27 08:53:41
I'd suggest a HashSet rather than a map containing
|
| +}; |
| + |
| +} // namespace blink |
| +#endif |
| + |