#ifndef CHROME_COMMON_CONTENT_SETTINGS_PATTERN_PARSER_H_
#define CHROME_COMMON_CONTENT_SETTINGS_PATTERN_PARSER_H_
#include <string>
#include "base/basictypes.h"
#include "chrome/common/content_settings_pattern.h"
namespace content_settings {
struct PatternParts;
class PatternParser {
public:
static void Parse(const std::string& pattern_spec,
ContentSettingsPattern::BuilderInterface* builder);
static std::string ToString(
const ContentSettingsPattern::PatternParts& parts);
private:
static const char* kDomainWildcard;
static const size_t kDomainWildcardLength;
static const char* kSchemeWildcard;
static const char* kHostWildcard;
static const char* kPortWildcard;
static const char* kPathWildcard;
DISALLOW_COPY_AND_ASSIGN(PatternParser);
};
}
#endif