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

Side by Side Diff: chrome/browser/content_settings/content_settings_pattern_parser.h

Issue 7885006: Moving ContentSettingsPattern from chrome/browser/content_settings to chrome/common. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Keeping up to date with trunk. Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 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 CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PATTERN_PARSER_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PATTERN_PARSER_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "chrome/browser/content_settings/content_settings_pattern.h"
12
13 namespace content_settings {
14
15 struct PatternParts;
16
17 class PatternParser {
18 public:
19 static void Parse(const std::string& pattern_spec,
20 ContentSettingsPattern::BuilderInterface* builder);
21
22 static std::string ToString(
23 const ContentSettingsPattern::PatternParts& parts);
24
25 private:
26 static const char* kDomainWildcard;
27
28 static const size_t kDomainWildcardLength;
29
30 static const char* kSchemeWildcard;
31
32 static const char* kHostWildcard;
33
34 static const char* kPortWildcard;
35
36 DISALLOW_COPY_AND_ASSIGN(PatternParser);
37 };
38
39 } // namespace content_settings
40
41 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CONTENT_SETTINGS_PATTERN_PARSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698