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

Unified Diff: Source/platform/CommaDelimitedParser.h

Issue 961773002: Add a comma delimited syntax parser and use it for Accept-CH (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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/platform/CommaDelimitedParser.h
diff --git a/Source/platform/CommaDelimitedParser.h b/Source/platform/CommaDelimitedParser.h
new file mode 100644
index 0000000000000000000000000000000000000000..9ddaf5bdfd90878575be326e17a14ea4dc3eb05b
--- /dev/null
+++ b/Source/platform/CommaDelimitedParser.h
@@ -0,0 +1,27 @@
+// 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 {
+public:
+ CommaDelimitedParser() { }
+ PLATFORM_EXPORT CommaDelimitedParser(String);
+
+ PLATFORM_EXPORT bool contains(String);
+
+private:
+ HashMap<String, bool, CaseFoldingHash> m_map;
+};
+
+} // namespace blink
+#endif
+

Powered by Google App Engine
This is Rietveld 408576698