Home
last modified time | relevance | path

Searched refs:allowed_origins (Results 1 – 4 of 4) sorted by relevance

/external/chromium/chrome/browser/content_settings/
Dcontent_settings_notification_provider.cc143 std::vector<GURL> allowed_origins = GetAllowedOrigins(); in GetAllContentSettingsRules() local
146 for (std::vector<GURL>::iterator url = allowed_origins.begin(); in GetAllContentSettingsRules()
147 url != allowed_origins.end(); in GetAllContentSettingsRules()
236 std::vector<GURL> allowed_origins; in GetAllowedOrigins() local
243 &allowed_origins); in GetAllowedOrigins()
245 return allowed_origins; in GetAllowedOrigins()
333 std::vector<GURL> allowed_origins(GetAllowedOrigins()); in GetContentSetting() local
334 if (std::find(allowed_origins.begin(), allowed_origins.end(), origin) != in GetContentSetting()
335 allowed_origins.end()) in GetContentSetting()
/external/chromium/chrome/browser/notifications/
Dnotifications_prefs_cache_unittest.cc14 std::vector<GURL> allowed_origins; in TEST() local
15 allowed_origins.push_back(GURL("http://allowed.com")); in TEST()
23 cache->SetCacheAllowedOrigins(allowed_origins); in TEST()
Ddesktop_notification_service_unittest.cc205 ListValue* allowed_origins = update_allowed_origins.Get(); in TEST_F() local
206 allowed_origins->Append(new StringValue(GURL("http://allowed.com").spec())); in TEST_F()
226 std::vector<GURL> allowed_origins(service_->GetAllowedOrigins()); in TEST_F() local
227 ASSERT_EQ(2u, allowed_origins.size()); in TEST_F()
228 EXPECT_EQ(GURL("http://allowed2.com"), allowed_origins[0]); in TEST_F()
229 EXPECT_EQ(GURL("http://allowed.com"), allowed_origins[1]); in TEST_F()
Ddesktop_notification_service.cc281 std::vector<GURL> allowed_origins; in InitPrefs() local
289 allowed_origins = GetAllowedOrigins(); in InitPrefs()
295 prefs_cache_->SetCacheAllowedOrigins(allowed_origins); in InitPrefs()
395 std::vector<GURL> allowed_origins(GetAllowedOrigins()); in OnPrefsChanged() local
401 allowed_origins)); in OnPrefsChanged()
443 std::vector<GURL> allowed_origins; in GetAllowedOrigins() local
446 content_setting_rules, CONTENT_SETTING_ALLOW, &allowed_origins); in GetAllowedOrigins()
448 return allowed_origins; in GetAllowedOrigins()