Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / common / content_settings_pattern_parser.h
blob19f8d2710002d88379cfb22f8c5dd48724d186b6
1 // Copyright (c) 2012 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.
5 #ifndef CHROME_COMMON_CONTENT_SETTINGS_PATTERN_PARSER_H_
6 #define CHROME_COMMON_CONTENT_SETTINGS_PATTERN_PARSER_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "chrome/common/content_settings_pattern.h"
13 namespace content_settings {
15 struct PatternParts;
17 class PatternParser {
18 public:
19 static void Parse(const std::string& pattern_spec,
20 ContentSettingsPattern::BuilderInterface* builder);
22 static std::string ToString(
23 const ContentSettingsPattern::PatternParts& parts);
25 private:
26 static const char* kDomainWildcard;
28 static const size_t kDomainWildcardLength;
30 static const char* kSchemeWildcard;
32 static const char* kHostWildcard;
34 static const char* kPortWildcard;
36 static const char* kPathWildcard;
38 DISALLOW_COPY_AND_ASSIGN(PatternParser);
41 } // namespace content_settings
43 #endif // CHROME_COMMON_CONTENT_SETTINGS_PATTERN_PARSER_H_