HomeSort by relevance Sort by last modified time
    Searched refs:ContentSettingsPattern (Results 1 - 25 of 126) sorted by null

1 2 3 4 5 6

  /external/chromium/chrome/browser/content_settings/
content_settings_pattern_unittest.cc 13 EXPECT_TRUE(ContentSettingsPattern("[*.]example.com").IsValid());
14 EXPECT_TRUE(ContentSettingsPattern("example.com").IsValid());
15 EXPECT_TRUE(ContentSettingsPattern("192.168.0.1").IsValid());
16 EXPECT_TRUE(ContentSettingsPattern("[::1]").IsValid());
17 EXPECT_TRUE(ContentSettingsPattern("file:///tmp/test.html").IsValid());
18 EXPECT_FALSE(ContentSettingsPattern("*example.com").IsValid());
19 EXPECT_FALSE(ContentSettingsPattern("example.*").IsValid());
20 EXPECT_FALSE(ContentSettingsPattern("http://example.com").IsValid());
22 EXPECT_TRUE(ContentSettingsPattern("[*.]example.com").Matches(
24 EXPECT_TRUE(ContentSettingsPattern("[*.]example.com").Matches
    [all...]
content_settings_pattern.h 18 class ContentSettingsPattern {
21 static ContentSettingsPattern FromURL(const GURL& url);
24 static ContentSettingsPattern FromURLNoWildcard(const GURL& url);
26 ContentSettingsPattern() {}
28 explicit ContentSettingsPattern(const std::string& pattern)
46 bool operator==(const ContentSettingsPattern& other) const {
71 ContentSettingsPattern(const std::string& host, const std::string& scheme)
83 // Stream operator so ContentSettingsPattern can be used in assertion
86 std::ostream& out, const ContentSettingsPattern& pattern) {
content_settings_pattern.cc 33 const int ContentSettingsPattern::kContentSettingsPatternVersion = 1;
34 const char* ContentSettingsPattern::kDomainWildcard = "[*.]";
35 const size_t ContentSettingsPattern::kDomainWildcardLength = 4;
38 ContentSettingsPattern ContentSettingsPattern::FromURL(
41 return ContentSettingsPattern(!url.has_host() || url.HostIsIPAddress() ?
47 ContentSettingsPattern ContentSettingsPattern::FromURLNoWildcard(
49 return ContentSettingsPattern(net::GetHostOrSpecFromURL(url), url.scheme());
52 bool ContentSettingsPattern::IsValid() const
    [all...]
content_settings_mock_provider.h 47 MockProvider(ContentSettingsPattern requesting_url_pattern,
48 ContentSettingsPattern embedding_url_pattern,
68 const ContentSettingsPattern& requesting_url_pattern,
69 const ContentSettingsPattern& embedding_url_pattern,
85 void set_requesting_url_pattern(ContentSettingsPattern pattern) {
89 ContentSettingsPattern requesting_url_pattern() const {
93 void set_embedding_url_pattern(ContentSettingsPattern pattern) {
97 ContentSettingsPattern embedding_url_pattern() const {
142 ContentSettingsPattern requesting_url_pattern_;
143 ContentSettingsPattern embedding_url_pattern_
    [all...]
content_settings_details.h 23 ContentSettingsDetails(const ContentSettingsPattern& pattern,
31 const ContentSettingsPattern& pattern() const { return pattern_; }
51 ContentSettingsPattern pattern_;
content_settings_mock_provider.cc 44 : requesting_url_pattern_(ContentSettingsPattern()),
45 embedding_url_pattern_(ContentSettingsPattern()),
52 MockProvider::MockProvider(ContentSettingsPattern requesting_url_pattern,
53 ContentSettingsPattern embedding_url_pattern,
83 const ContentSettingsPattern& requesting_url_pattern,
84 const ContentSettingsPattern& embedding_url_pattern,
90 requesting_url_pattern_ = ContentSettingsPattern(requesting_url_pattern);
91 embedding_url_pattern_ = ContentSettingsPattern(embedding_url_pattern);
  /external/chromium_org/chrome/common/
render_messages.cc 9 void ParamTraits<ContentSettingsPattern>::Write(
10 Message* m, const ContentSettingsPattern& pattern) {
14 bool ParamTraits<ContentSettingsPattern>::Read(
15 const Message* m, PickleIterator* iter, ContentSettingsPattern* pattern) {
19 void ParamTraits<ContentSettingsPattern>::Log(
20 const ContentSettingsPattern& p, std::string* l) {
21 l->append("<ContentSettingsPattern: ");
content_settings_pattern.cc 81 typedef ContentSettingsPattern::BuilderInterface BuilderInterface;
86 // ContentSettingsPattern::Builder
88 ContentSettingsPattern::Builder::Builder(bool use_legacy_validate)
92 ContentSettingsPattern::Builder::~Builder() {}
94 BuilderInterface* ContentSettingsPattern::Builder::WithPort(
101 BuilderInterface* ContentSettingsPattern::Builder::WithPortWildcard() {
107 BuilderInterface* ContentSettingsPattern::Builder::WithHost(
113 BuilderInterface* ContentSettingsPattern::Builder::WithDomainWildcard() {
118 BuilderInterface* ContentSettingsPattern::Builder::WithScheme(
125 BuilderInterface* ContentSettingsPattern::Builder::WithSchemeWildcard()
    [all...]
content_settings.h 30 ContentSettingPatternSource(const ContentSettingsPattern& primary_pattern,
31 const ContentSettingsPattern& secondary_patttern,
36 ContentSettingsPattern primary_pattern;
37 ContentSettingsPattern secondary_pattern;
71 ContentSettingsPattern primary_pattern;
72 ContentSettingsPattern secondary_pattern;
content_settings_pattern.h 31 class ContentSettingsPattern {
126 virtual ContentSettingsPattern Build() = 0;
142 static ContentSettingsPattern Wildcard();
146 static ContentSettingsPattern FromURL(const GURL& url);
149 static ContentSettingsPattern FromURLNoWildcard(const GURL& url);
160 static ContentSettingsPattern FromString(const std::string& pattern_spec);
162 static ContentSettingsPattern LegacyFromString(
167 ContentSettingsPattern();
187 Relation Compare(const ContentSettingsPattern& other) const;
190 bool operator==(const ContentSettingsPattern& other) const
    [all...]
content_settings_pattern_parser.h 20 ContentSettingsPattern::BuilderInterface* builder);
23 const ContentSettingsPattern::PatternParts& parts);
content_settings_pattern_unittest.cc 12 ContentSettingsPattern Pattern(const std::string& str) {
13 return ContentSettingsPattern::FromString(str);
55 ContentSettingsPattern pattern = ContentSettingsPattern::FromURL(
61 pattern = ContentSettingsPattern::FromURL(GURL("http://www.google.com"));
69 pattern = ContentSettingsPattern::FromURL(GURL("http://www.google.com:80"));
74 pattern = ContentSettingsPattern::FromURL(GURL("https://www.google.com:443"));
81 pattern = ContentSettingsPattern::FromURL(GURL("https://127.0.0.1"));
85 pattern = ContentSettingsPattern::FromURL(GURL("http://[::1]"));
88 pattern = ContentSettingsPattern::FromURL(GURL("file:///foo/bar.html"))
    [all...]
content_settings.cc 14 const ContentSettingsPattern& primary_pattern,
15 const ContentSettingsPattern& secondary_pattern,
  /external/chromium_org/chrome/browser/content_settings/
content_settings_details.h 23 ContentSettingsDetails(const ContentSettingsPattern& primary_pattern,
24 const ContentSettingsPattern& secondary_pattern,
29 const ContentSettingsPattern& primary_pattern() const {
34 const ContentSettingsPattern& secondary_pattern() const {
59 ContentSettingsPattern primary_pattern_;
60 ContentSettingsPattern secondary_pattern_;
content_settings_details.cc 8 const ContentSettingsPattern& primary_pattern,
9 const ContentSettingsPattern& secondary_pattern,
content_settings_observer.h 18 const ContentSettingsPattern& primary_pattern,
19 const ContentSettingsPattern& secondary_pattern,
mock_settings_observer.h 13 class ContentSettingsPattern;
29 const ContentSettingsPattern&,
30 const ContentSettingsPattern&,
content_settings_provider.h 18 class ContentSettingsPattern;
53 const ContentSettingsPattern& primary_pattern,
54 const ContentSettingsPattern& secondary_pattern,
content_settings_rule_unittest.cc 43 rules1.push_back(Rule(ContentSettingsPattern::FromString("a"),
44 ContentSettingsPattern::Wildcard(),
46 rules1.push_back(Rule(ContentSettingsPattern::FromString("b"),
47 ContentSettingsPattern::Wildcard(),
50 rules2.push_back(Rule(ContentSettingsPattern::FromString("c"),
51 ContentSettingsPattern::Wildcard(),
53 rules2.push_back(Rule(ContentSettingsPattern::FromString("d"),
54 ContentSettingsPattern::Wildcard(),
65 EXPECT_EQ(rule.primary_pattern, ContentSettingsPattern::FromString("a"));
69 EXPECT_EQ(rule.primary_pattern, ContentSettingsPattern::FromString("b"))
    [all...]
content_settings_mock_observer.h 21 void(const ContentSettingsPattern& primary_pattern,
22 const ContentSettingsPattern& secondary_pattern,
content_settings_observable_provider.h 26 void NotifyObservers(const ContentSettingsPattern& primary_pattern,
27 const ContentSettingsPattern& secondary_pattern,
content_settings_utils.h 27 typedef std::pair<ContentSettingsPattern, ContentSettingsPattern> PatternPair;
43 const ContentSettingsPattern& item_pattern,
44 const ContentSettingsPattern& top_level_frame_pattern);
51 ContentSettingsPattern* primary_pattern,
52 ContentSettingsPattern* secondary_pattern);
61 ContentSettingsPattern* primary_pattern,
62 ContentSettingsPattern* secondary_pattern);
content_settings_custom_extension_provider.cc 35 const ContentSettingsPattern& primary_pattern,
36 const ContentSettingsPattern& secondary_pattern,
54 NotifyObservers(ContentSettingsPattern(),
55 ContentSettingsPattern(),
content_settings_rule.h 23 Rule(const ContentSettingsPattern& primary_pattern,
24 const ContentSettingsPattern& secondary_pattern,
28 ContentSettingsPattern primary_pattern;
29 ContentSettingsPattern secondary_pattern;
content_settings_origin_identifier_value_map.h 38 ContentSettingsPattern primary_pattern;
39 ContentSettingsPattern secondary_pattern;
40 PatternPair(const ContentSettingsPattern& primary_pattern,
41 const ContentSettingsPattern& secondary_pattern);
96 const ContentSettingsPattern& primary_pattern,
97 const ContentSettingsPattern& secondary_pattern,
105 const ContentSettingsPattern& primary_pattern,
106 const ContentSettingsPattern& secondary_pattern,

Completed in 155 milliseconds

1 2 3 4 5 6