Home
last modified time | relevance | path

Searched refs:ContentSettingsPattern (Results 1 – 25 of 113) sorted by relevance

12345

/external/chromium_org/components/content_settings/core/common/
Dcontent_settings_pattern.cc79 typedef ContentSettingsPattern::BuilderInterface BuilderInterface;
86 class ContentSettingsPattern::Builder :
87 public ContentSettingsPattern::BuilderInterface {
102 virtual ContentSettingsPattern Build() OVERRIDE;
124 ContentSettingsPattern::Builder::Builder(bool use_legacy_validate) in Builder()
128 ContentSettingsPattern::Builder::~Builder() {} in ~Builder()
130 BuilderInterface* ContentSettingsPattern::Builder::WithPort( in WithPort()
137 BuilderInterface* ContentSettingsPattern::Builder::WithPortWildcard() { in WithPortWildcard()
143 BuilderInterface* ContentSettingsPattern::Builder::WithHost( in WithHost()
149 BuilderInterface* ContentSettingsPattern::Builder::WithDomainWildcard() { in WithDomainWildcard()
[all …]
Dcontent_settings_pattern_unittest.cc12 ContentSettingsPattern Pattern(const std::string& str) { in Pattern()
13 return ContentSettingsPattern::FromString(str); in Pattern()
55 ContentSettingsPattern pattern = ContentSettingsPattern::FromURL( in TEST()
61 pattern = ContentSettingsPattern::FromURL(GURL("http://www.google.com")); in TEST()
69 pattern = ContentSettingsPattern::FromURL(GURL("http://www.google.com:80")); in TEST()
74 pattern = ContentSettingsPattern::FromURL(GURL("https://www.google.com:443")); in TEST()
81 pattern = ContentSettingsPattern::FromURL(GURL("https://127.0.0.1")); in TEST()
85 pattern = ContentSettingsPattern::FromURL(GURL("http://[::1]")); in TEST()
88 pattern = ContentSettingsPattern::FromURL(GURL("file:///foo/bar.html")); in TEST()
94 ContentSettingsPattern pattern = in TEST()
[all …]
Dcontent_settings_pattern.h22 class ContentSettingsPattern {
117 virtual ContentSettingsPattern Build() = 0;
127 static ContentSettingsPattern Wildcard();
131 static ContentSettingsPattern FromURL(const GURL& url);
134 static ContentSettingsPattern FromURLNoWildcard(const GURL& url);
145 static ContentSettingsPattern FromString(const std::string& pattern_spec);
158 ContentSettingsPattern();
174 Relation Compare(const ContentSettingsPattern& other) const;
177 bool operator==(const ContentSettingsPattern& other) const;
180 bool operator!=(const ContentSettingsPattern& other) const;
[all …]
Dcontent_settings.h29 ContentSettingPatternSource(const ContentSettingsPattern& primary_pattern,
30 const ContentSettingsPattern& secondary_patttern,
35 ContentSettingsPattern primary_pattern;
36 ContentSettingsPattern secondary_pattern;
70 ContentSettingsPattern primary_pattern;
71 ContentSettingsPattern secondary_pattern;
/external/chromium_org/chrome/browser/content_settings/
Dcontent_settings_origin_identifier_value_map_unittest.cc22 map.SetValue(ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
23 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
67 map.SetValue(ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
68 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
85 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
86 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
101 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
102 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
117 map.SetValue(ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
118 ContentSettingsPattern::FromString("[*.]google.com"), in TEST()
[all …]
Dhost_content_settings_map_unittest.cc81 ContentSettingsPattern pattern = in TEST_F()
82 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
88 ContentSettingsPattern::Wildcard(), in TEST_F()
97 ContentSettingsPattern::Wildcard(), in TEST_F()
111 ContentSettingsPattern::Wildcard(), in TEST_F()
120 ContentSettingsPattern::Wildcard(), in TEST_F()
129 ContentSettingsPattern::Wildcard(), in TEST_F()
154 ContentSettingsPattern pattern2 = in TEST_F()
155 ContentSettingsPattern::FromString("[*.]example.org"); in TEST_F()
158 ContentSettingsPattern::Wildcard(), in TEST_F()
[all …]
Dcookie_settings_unittest.cc33 kAllHttpsSitesPattern(ContentSettingsPattern::FromString("https://*")) { in CookieSettingsTest()
47 ContentSettingsPattern kAllHttpsSitesPattern;
52 ContentSettingsPattern::FromURL(kBlockedSite), in TEST_F()
53 ContentSettingsPattern::Wildcard(), in TEST_F()
78 ContentSettingsPattern::FromURL(kBlockedSite), in TEST_F()
79 ContentSettingsPattern::Wildcard(), in TEST_F()
91 ContentSettingsPattern::FromURL(kBlockedSite), in TEST_F()
92 ContentSettingsPattern::Wildcard(), in TEST_F()
110 ContentSettingsPattern::FromURL(kAllowedSite), in TEST_F()
111 ContentSettingsPattern::Wildcard(), in TEST_F()
[all …]
Dhost_content_settings_map.cc140 OnContentSettingChanged(ContentSettingsPattern(), in RegisterProvider()
141 ContentSettingsPattern(), in RegisterProvider()
152 ContentSettingsPattern wildcard = ContentSettingsPattern::Wildcard(); in GetDefaultContentSettingFromProvider()
242 ContentSettingsPattern::Wildcard(), in SetDefaultContentSetting()
243 ContentSettingsPattern::Wildcard(), in SetDefaultContentSetting()
250 const ContentSettingsPattern& primary_pattern, in SetWebsiteSetting()
251 const ContentSettingsPattern& secondary_pattern, in SetWebsiteSetting()
275 const ContentSettingsPattern& primary_pattern, in SetNarrowestWebsiteSetting()
276 const ContentSettingsPattern& secondary_pattern, in SetNarrowestWebsiteSetting()
281 ContentSettingsPattern narrow_primary = primary_pattern; in SetNarrowestWebsiteSetting()
[all …]
Dcontent_settings_default_provider_unittest.cc48 ContentSettingsPattern::Wildcard(), in TEST_F()
49 ContentSettingsPattern::Wildcard(), in TEST_F()
69 ContentSettingsPattern::Wildcard(), in TEST_F()
70 ContentSettingsPattern::Wildcard(), in TEST_F()
106 ContentSettingsPattern::FromURL(primary_url), in TEST_F()
107 ContentSettingsPattern::FromURL(secondary_url), in TEST_F()
128 ContentSettingsPattern::Wildcard(), in TEST_F()
129 ContentSettingsPattern::Wildcard(), in TEST_F()
138 ContentSettingsPattern::Wildcard(), in TEST_F()
139 ContentSettingsPattern::Wildcard(), in TEST_F()
[all …]
Dcontent_settings_utils.h27 typedef std::pair<ContentSettingsPattern, ContentSettingsPattern> PatternPair;
50 const ContentSettingsPattern& item_pattern,
51 const ContentSettingsPattern& top_level_frame_pattern);
58 ContentSettingsPattern* primary_pattern,
59 ContentSettingsPattern* secondary_pattern);
68 ContentSettingsPattern* primary_pattern,
69 ContentSettingsPattern* secondary_pattern);
Dcontent_settings_pref_provider.h48 const ContentSettingsPattern& primary_pattern,
49 const ContentSettingsPattern& secondary_pattern,
60 void UpdateLastUsage(const ContentSettingsPattern& primary_pattern,
61 const ContentSettingsPattern& secondary_pattern,
64 base::Time GetLastUsage(const ContentSettingsPattern& primary_pattern,
65 const ContentSettingsPattern& secondary_pattern,
86 const ContentSettingsPattern& primary_pattern,
87 const ContentSettingsPattern& secondary_pattern,
Dcontent_settings_pref_provider_unittest.cc110 ContentSettingsPattern pattern = in TEST_F()
111 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
115 ContentSettingsPattern::Wildcard(), in TEST_F()
123 ContentSettingsPattern::Wildcard(), in TEST_F()
166 ContentSettingsPattern pattern = in TEST_F()
167 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
205 ContentSettingsPattern primary_pattern = in TEST_F()
206 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
271 ContentSettingsPattern pattern1 = in TEST_F()
272 ContentSettingsPattern::FromString("[*.]example.com"); in TEST_F()
[all …]
Dhost_content_settings_map.h138 void SetContentSetting(const ContentSettingsPattern& primary_pattern,
139 const ContentSettingsPattern& secondary_pattern,
149 void SetWebsiteSetting(const ContentSettingsPattern& primary_pattern,
150 const ContentSettingsPattern& secondary_pattern,
158 const ContentSettingsPattern& primary_pattern,
159 const ContentSettingsPattern& secondary_pattern,
197 const ContentSettingsPattern& primary_pattern,
198 const ContentSettingsPattern& secondary_pattern,
238 void UpdateLastUsageByPattern(const ContentSettingsPattern& primary_pattern,
239 const ContentSettingsPattern& secondary_pattern,
[all …]
Dmock_settings_observer.h13 class ContentSettingsPattern; variable
21 void OnContentSettingChanged(const ContentSettingsPattern& primary_pattern,
22 const ContentSettingsPattern& secondary_pattern,
30 const ContentSettingsPattern&,
31 const ContentSettingsPattern&,
Dcontent_settings_utils.cc113 const ContentSettingsPattern& item_pattern, in CreatePatternString()
114 const ContentSettingsPattern& top_level_frame_pattern) { in CreatePatternString()
139 return PatternPair(ContentSettingsPattern(), in ParsePatternString()
140 ContentSettingsPattern()); in ParsePatternString()
145 ContentSettingsPattern::FromString(pattern_str_list[0]); in ParsePatternString()
147 ContentSettingsPattern::FromString(pattern_str_list[1]); in ParsePatternString()
178 ContentSettingsPattern* primary_pattern, in GetContentSettingValueAndPatterns()
179 ContentSettingsPattern* secondary_pattern) { in GetContentSettingValueAndPatterns()
204 ContentSettingsPattern* primary_pattern, in GetContentSettingValueAndPatterns()
205 ContentSettingsPattern* secondary_pattern) { in GetContentSettingValueAndPatterns()
Dcontent_settings_pref_provider.cc80 ContentSettingsPattern::kContentSettingsPatternVersion, in RegisterProfilePrefs()
96 ContentSettingsPattern::kContentSettingsPatternVersion); in PrefProvider()
99 ContentSettingsPattern::kContentSettingsPatternVersion) { in PrefProvider()
124 const ContentSettingsPattern& primary_pattern, in SetWebsiteSetting()
125 const ContentSettingsPattern& secondary_pattern, in SetWebsiteSetting()
136 if (primary_pattern == ContentSettingsPattern::Wildcard() && in SetWebsiteSetting()
137 secondary_pattern == ContentSettingsPattern::Wildcard() && in SetWebsiteSetting()
210 NotifyObservers(ContentSettingsPattern(), in ClearAllContentSettingsRules()
211 ContentSettingsPattern(), in ClearAllContentSettingsRules()
235 const ContentSettingsPattern& primary_pattern, in UpdatePref()
[all …]
/external/chromium_org/components/content_settings/core/browser/
Dcontent_settings_rule_unittest.cc43 rules1.push_back(Rule(ContentSettingsPattern::FromString("a"), in TEST()
44 ContentSettingsPattern::Wildcard(), in TEST()
46 rules1.push_back(Rule(ContentSettingsPattern::FromString("b"), in TEST()
47 ContentSettingsPattern::Wildcard(), in TEST()
50 rules2.push_back(Rule(ContentSettingsPattern::FromString("c"), in TEST()
51 ContentSettingsPattern::Wildcard(), in TEST()
53 rules2.push_back(Rule(ContentSettingsPattern::FromString("d"), in TEST()
54 ContentSettingsPattern::Wildcard(), in TEST()
65 EXPECT_EQ(rule.primary_pattern, ContentSettingsPattern::FromString("a")); in TEST()
69 EXPECT_EQ(rule.primary_pattern, ContentSettingsPattern::FromString("b")); in TEST()
[all …]
Dcontent_settings_origin_identifier_value_map.h38 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,
Dcontent_settings_details.h23 ContentSettingsDetails(const ContentSettingsPattern& primary_pattern,
24 const ContentSettingsPattern& secondary_pattern,
29 const ContentSettingsPattern& primary_pattern() const { in primary_pattern()
34 const ContentSettingsPattern& secondary_pattern() const { in secondary_pattern()
59 ContentSettingsPattern primary_pattern_;
60 ContentSettingsPattern secondary_pattern_;
/external/chromium_org/chrome/browser/notifications/
Ddesktop_notification_profile_util.cc20 Profile* profile, const ContentSettingsPattern& pattern) { in ClearSetting()
23 ContentSettingsPattern::Wildcard(), in ClearSetting()
33 ContentSettingsPattern primary_pattern = in GrantPermission()
34 ContentSettingsPattern::FromURLNoWildcard(origin); in GrantPermission()
37 ContentSettingsPattern::Wildcard(), in GrantPermission()
45 ContentSettingsPattern primary_pattern = in DenyPermission()
46 ContentSettingsPattern::FromURLNoWildcard(origin); in DenyPermission()
49 ContentSettingsPattern::Wildcard(), in DenyPermission()
75 ContentSettingsPattern::FromURLNoWildcard(origin), in UsePermission()
76 ContentSettingsPattern::Wildcard(), in UsePermission()
Ddesktop_notification_profile_util_unittest.cc35 EXPECT_EQ(ContentSettingsPattern::FromURLNoWildcard( in TEST_F()
40 EXPECT_EQ(ContentSettingsPattern::FromURLNoWildcard( in TEST_F()
45 EXPECT_EQ(ContentSettingsPattern::FromURLNoWildcard( in TEST_F()
50 EXPECT_EQ(ContentSettingsPattern::FromURLNoWildcard( in TEST_F()
55 EXPECT_EQ(ContentSettingsPattern::Wildcard(), in TEST_F()
/external/chromium_org/chrome/browser/ui/webui/options/
Dpepper_flash_content_settings_utils_unittest.cc25 MediaException entry_1(ContentSettingsPattern::FromString("www.google.com"), in TEST()
27 MediaException entry_2(ContentSettingsPattern::FromString("www.youtube.com"), in TEST()
29 MediaException entry_3(ContentSettingsPattern::Wildcard(), in TEST()
31 MediaException entry_4(ContentSettingsPattern(), in TEST()
80 MediaException(ContentSettingsPattern::FromString("www.google.com"), in TEST()
82 MediaException(ContentSettingsPattern::FromString("www.youtube.com"), in TEST()
87 MediaException(ContentSettingsPattern::FromString("www.google.com"), in TEST()
121 MediaException(ContentSettingsPattern::FromString("www.youtube.com"), in TEST()
123 MediaException(ContentSettingsPattern::FromString("www.google.com"), in TEST()
128 MediaException(ContentSettingsPattern::FromString("www.google.com"), in TEST()
[all …]
/external/chromium_org/chrome/common/
Drender_messages.cc11 void ParamTraits<ContentSettingsPattern>::Write( in Write()
12 Message* m, const ContentSettingsPattern& pattern) { in Write()
16 bool ParamTraits<ContentSettingsPattern>::Read( in Read()
17 const Message* m, PickleIterator* iter, ContentSettingsPattern* pattern) { in Read()
21 void ParamTraits<ContentSettingsPattern>::Log( in Log()
22 const ContentSettingsPattern& p, std::string* l) { in Log()
/external/chromium_org/chrome/renderer/
Dcontent_settings_observer_browsertest.cc103 ContentSettingPatternSource(ContentSettingsPattern::Wildcard(), in TEST_F()
104 ContentSettingsPattern::Wildcard(), in TEST_F()
182 ContentSettingPatternSource(ContentSettingsPattern::Wildcard(), in TEST_F()
183 ContentSettingsPattern::Wildcard(), in TEST_F()
200 ContentSettingsPattern::Wildcard(), in TEST_F()
201 ContentSettingsPattern::FromString(mock_observer.image_origin_), in TEST_F()
224 ContentSettingPatternSource(ContentSettingsPattern::Wildcard(), in TEST_F()
225 ContentSettingsPattern::Wildcard(), in TEST_F()
243 ContentSettingsPattern::Wildcard(), in TEST_F()
244 ContentSettingsPattern::FromString(mock_observer.image_origin_), in TEST_F()
[all …]
/external/chromium_org/chrome/browser/extensions/api/content_settings/
Dcontent_settings_helpers.cc59 ContentSettingsPattern ParseExtensionPattern(const std::string& pattern_str, in ParseExtensionPattern()
68 return ContentSettingsPattern(); in ParseExtensionPattern()
70 scoped_ptr<ContentSettingsPattern::BuilderInterface> builder( in ParseExtensionPattern()
71 ContentSettingsPattern::CreateBuilder(false)); in ParseExtensionPattern()
99 return ContentSettingsPattern(); in ParseExtensionPattern()
106 return ContentSettingsPattern(); in ParseExtensionPattern()
109 ContentSettingsPattern pattern = builder->Build(); in ParseExtensionPattern()

12345