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.
4
5#ifndef COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_PATTERN_PARSER_H_
6#define COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_PATTERN_PARSER_H_
7
8#include <string>
9
10#include "base/macros.h"
11#include "components/content_settings/core/common/content_settings_pattern.h"
12
13namespace content_settings {
14
15class PatternParser {
16 public:
17  static void Parse(const std::string& pattern_spec,
18                    ContentSettingsPattern::BuilderInterface* builder);
19
20  static std::string ToString(
21      const ContentSettingsPattern::PatternParts& parts);
22
23 private:
24  DISALLOW_IMPLICIT_CONSTRUCTORS(PatternParser);
25};
26
27}  // namespace content_settings
28
29#endif  // COMPONENTS_CONTENT_SETTINGS_CORE_COMMON_CONTENT_SETTINGS_PATTERN_PARSER_H_
30