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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CommaDelimitedParser_h
6 #define CommaDelimitedParser_h
7
8 #include "platform/PlatformExport.h"
9 #include "wtf/HashMap.h"
10 #include "wtf/text/StringHash.h"
11
12 namespace blink {
13
14 class CommaDelimitedParser {
15 public:
16 CommaDelimitedParser() { }
17 PLATFORM_EXPORT CommaDelimitedParser(String);
18
19 PLATFORM_EXPORT bool contains(String);
20
21 private:
22 HashMap<String, bool, CaseFoldingHash> m_map;
23 };
24
25 } // namespace blink
26 #endif
27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698