/external/chromium_org/chrome/browser/content_settings/ |
D | tab_specific_content_settings_unittest.cc | 48 TabSpecificContentSettings* content_settings = in TEST_F() local 54 content_settings->IsContentBlocked(CONTENT_SETTINGS_TYPE_IMAGES)); in TEST_F() 56 content_settings->IsContentBlocked(CONTENT_SETTINGS_TYPE_JAVASCRIPT)); in TEST_F() 58 content_settings->IsContentBlocked(CONTENT_SETTINGS_TYPE_PLUGINS)); in TEST_F() 60 content_settings->IsContentBlocked(CONTENT_SETTINGS_TYPE_COOKIES)); in TEST_F() 62 content_settings->IsContentBlocked(CONTENT_SETTINGS_TYPE_POPUPS)); in TEST_F() 63 EXPECT_FALSE(content_settings->IsContentBlocked( in TEST_F() 65 EXPECT_FALSE(content_settings->IsContentBlocked( in TEST_F() 70 content_settings->OnCookieChanged(GURL("http://google.com"), in TEST_F() 75 content_settings->OnContentBlocked(CONTENT_SETTINGS_TYPE_IMAGES); in TEST_F() [all …]
|
D | host_content_settings_map.cc | 47 typedef std::vector<content_settings::Rule> Rules; 59 content_settings::SettingSource kProviderSourceMap[] = { 60 content_settings::SETTING_SOURCE_EXTENSION, 61 content_settings::SETTING_SOURCE_POLICY, 62 content_settings::SETTING_SOURCE_EXTENSION, 63 content_settings::SETTING_SOURCE_USER, 64 content_settings::SETTING_SOURCE_USER, 86 content_settings::ObservableProvider* policy_provider = in HostContentSettingsMap() 87 new content_settings::PolicyProvider(prefs_); in HostContentSettingsMap() 91 content_settings::ObservableProvider* pref_provider = in HostContentSettingsMap() [all …]
|
D | content_settings_utils_unittest.cc | 12 content_settings::PatternPair pattern_pair; in TEST() 14 pattern_pair = content_settings::ParsePatternString(std::string()); in TEST() 18 pattern_pair = content_settings::ParsePatternString(","); in TEST() 22 pattern_pair = content_settings::ParsePatternString("http://www.foo.com"); in TEST() 27 pattern_pair = content_settings::ParsePatternString("http://www.foo.com,"); in TEST() 31 pattern_pair = content_settings::ParsePatternString( in TEST() 36 pattern_pair = content_settings::ParsePatternString( in TEST() 41 pattern_pair = content_settings::ParsePatternString( in TEST()
|
D | content_settings_origin_identifier_value_map_unittest.cc | 15 content_settings::OriginIdentifierValueMap map; in TEST() 59 content_settings::OriginIdentifierValueMap map; in TEST() 114 content_settings::OriginIdentifierValueMap map; in TEST() 147 content_settings::OriginIdentifierValueMap map; in TEST() 176 content_settings::OriginIdentifierValueMap map; in TEST() 177 scoped_ptr<content_settings::RuleIterator> rule_iterator( in TEST() 184 content_settings::OriginIdentifierValueMap map; in TEST() 200 scoped_ptr<content_settings::RuleIterator> rule_iterator( in TEST() 203 content_settings::Rule rule = rule_iterator->Next(); in TEST() 205 EXPECT_EQ(2, content_settings::ValueToContentSetting(rule.value.get())); in TEST() [all …]
|
D | host_content_settings_map.h | 33 namespace content_settings { 42 : public content_settings::Observer, 104 content_settings::SettingInfo* info) const; 206 typedef std::map<ProviderType, content_settings::ProviderInterface*> 215 content_settings::ProviderInterface* provider) const; 226 const content_settings::ProviderInterface* provider,
|
/external/chromium/chrome/browser/tab_contents/ |
D | tab_specific_content_settings_unittest.cc | 42 TabSpecificContentSettings content_settings(&test_delegate, &profile); in TEST() local 46 EXPECT_FALSE(content_settings.IsContentBlocked(CONTENT_SETTINGS_TYPE_IMAGES)); in TEST() 48 content_settings.IsContentBlocked(CONTENT_SETTINGS_TYPE_JAVASCRIPT)); in TEST() 50 content_settings.IsContentBlocked(CONTENT_SETTINGS_TYPE_PLUGINS)); in TEST() 52 content_settings.IsContentBlocked(CONTENT_SETTINGS_TYPE_COOKIES)); in TEST() 53 EXPECT_FALSE(content_settings.IsContentBlocked(CONTENT_SETTINGS_TYPE_POPUPS)); in TEST() 56 content_settings.OnCookieChanged( in TEST() 61 content_settings.OnContentBlocked(CONTENT_SETTINGS_TYPE_IMAGES, in TEST() 66 content_settings.SetPopupsBlocked(true); in TEST() 72 EXPECT_TRUE(content_settings.IsContentBlocked(CONTENT_SETTINGS_TYPE_IMAGES)); in TEST() [all …]
|
/external/chromium/chrome/browser/geolocation/ |
D | geolocation_content_settings_map_unittest.cc | 31 Source<GeolocationContentSettingsMap> content_settings(source); in Observe() local 33 last_notifier = content_settings.ptr(); in Observe() 133 GeolocationContentSettingsMap::AllOriginsSettings content_settings( in TEST_F() local 135 EXPECT_EQ(0U, content_settings.count(requester_0)); in TEST_F() 136 EXPECT_EQ(1U, content_settings.count(requester_0.GetOrigin())); in TEST_F() 138 content_settings[requester_0.GetOrigin()]); in TEST_F() 141 EXPECT_EQ(0U, content_settings.count(requester_1)); in TEST_F() 142 EXPECT_EQ(1U, content_settings.count(requester_1.GetOrigin())); in TEST_F() 143 one_origin_settings = content_settings[requester_1.GetOrigin()]; in TEST_F() 176 GeolocationContentSettingsMap::AllOriginsSettings content_settings( in TEST_F() local [all …]
|
/external/chromium_org/chrome/common/ |
D | content_settings_pattern_parser_unittest.cc | 41 content_settings::PatternParser::Parse("*", &builder); in TEST() 50 content_settings::PatternParser::Parse( in TEST() 60 content_settings::PatternParser::Parse("*://www.gmail.com:80", &builder); in TEST() 69 content_settings::PatternParser::Parse("http://www.gmail.com:*", &builder); in TEST() 80 content_settings::PatternParser::Parse("http://[*.]google.com:80", &builder); in TEST() 89 content_settings::PatternParser::Parse("https://[::1]:8080", &builder); in TEST() 98 content_settings::PatternParser::Parse("http://127.0.0.1:8080", &builder); in TEST() 108 content_settings::PatternParser::Parse("www.youtube.com:8080", &builder); in TEST() 117 content_settings::PatternParser::Parse("www.youtube.com", &builder); in TEST() 128 content_settings::PatternParser::Parse("[*.]youtube.com", &builder); in TEST() [all …]
|
/external/chromium_org/chrome/browser/ui/content_settings/ |
D | content_setting_image_model.cc | 129 TabSpecificContentSettings* content_settings = in UpdateFromWebContents() local 131 if (!content_settings) in UpdateFromWebContents() 135 if (!content_settings->IsContentBlocked(get_content_settings_type())) { in UpdateFromWebContents() 136 if (!content_settings->IsContentAllowed(get_content_settings_type())) in UpdateFromWebContents() 180 TabSpecificContentSettings* content_settings = in UpdateFromWebContents() local 182 if (!content_settings) in UpdateFromWebContents() 184 const ContentSettingsUsagesState& usages_state = content_settings-> in UpdateFromWebContents() 234 TabSpecificContentSettings* content_settings = in UpdateFromWebContents() local 236 if (!content_settings) in UpdateFromWebContents() 239 content_settings->GetMicrophoneCameraState(); in UpdateFromWebContents() [all …]
|
D | content_setting_bubble_model_unittest.cc | 57 TabSpecificContentSettings* content_settings = in TEST_F() local 59 content_settings->OnContentBlocked(CONTENT_SETTINGS_TYPE_IMAGES); in TEST_F() 75 TabSpecificContentSettings* content_settings = in TEST_F() local 77 content_settings->OnContentBlocked(CONTENT_SETTINGS_TYPE_COOKIES); in TEST_F() 93 content_settings->ClearCookieSpecificContentSettings(); in TEST_F() 94 content_settings->OnContentAllowed(CONTENT_SETTINGS_TYPE_COOKIES); in TEST_F() 117 TabSpecificContentSettings* content_settings = in TEST_F() local 127 content_settings->OnMediaStreamPermissionSet(security_origin, in TEST_F() 180 TabSpecificContentSettings* content_settings = in TEST_F() local 188 content_settings->OnMediaStreamPermissionSet(url, request_permissions); in TEST_F() [all …]
|
D | content_setting_image_model_unittest.cc | 60 TabSpecificContentSettings* content_settings = in TEST_F() local 69 content_settings->OnContentBlocked(CONTENT_SETTINGS_TYPE_IMAGES); in TEST_F() 85 TabSpecificContentSettings* content_settings = in TEST_F() local 87 content_settings->set_pending_protocol_handler( in TEST_F() 96 TabSpecificContentSettings* content_settings = in TEST_F() local 108 content_settings->OnCookieChanged(GURL("http://google.com"), in TEST_F()
|
D | content_setting_bubble_model.cc | 44 using content_settings::SettingInfo; 45 using content_settings::SettingSource; 46 using content_settings::SETTING_SOURCE_USER; 47 using content_settings::SETTING_SOURCE_NONE; 255 TabSpecificContentSettings* content_settings = in SetRadioGroup() local 258 !content_settings->IsContentBlocked(content_type()); in SetRadioGroup() 260 content_settings->IsContentAllowed(content_type())); in SetRadioGroup() 343 setting = content_settings::ValueToContentSetting(value.get()); in SetRadioGroup() 583 TabSpecificContentSettings* content_settings = in ContentSettingMediaStreamBubbleModel() local 585 state_ = content_settings->GetMicrophoneCameraState(); in ContentSettingMediaStreamBubbleModel() [all …]
|
/external/chromium/chrome/browser/ |
D | content_setting_bubble_model_unittest.cc | 47 TabSpecificContentSettings* content_settings = in TEST_F() local 49 content_settings->OnContentBlocked(CONTENT_SETTINGS_TYPE_IMAGES, in TEST_F() 65 TabSpecificContentSettings* content_settings = in TEST_F() local 67 content_settings->OnContentBlocked(CONTENT_SETTINGS_TYPE_COOKIES, in TEST_F() 83 TabSpecificContentSettings* content_settings = in TEST_F() local 85 content_settings->OnContentBlocked(CONTENT_SETTINGS_TYPE_PLUGINS, in TEST_F() 119 TabSpecificContentSettings* content_settings = in TEST_F() local 121 content_settings->OnContentBlocked(CONTENT_SETTINGS_TYPE_PLUGINS, in TEST_F() 123 content_settings->OnContentBlocked(CONTENT_SETTINGS_TYPE_PLUGINS, in TEST_F() 163 TabSpecificContentSettings* content_settings = in TEST_F() local [all …]
|
D | content_setting_image_model_unittest.cc | 30 TabSpecificContentSettings* content_settings = in TEST_F() local 39 content_settings->OnContentBlocked(CONTENT_SETTINGS_TYPE_IMAGES, in TEST_F() 50 TabSpecificContentSettings* content_settings = in TEST_F() local 62 content_settings->OnCookieChanged( in TEST_F()
|
/external/chromium/chrome/browser/content_settings/ |
D | content_settings_base_provider.cc | 30 namespace content_settings { namespace 36 : content_settings(rhs.content_settings), in ExtendedContentSettings() 60 for (size_t i = 0; i < arraysize(settings.content_settings.settings); ++i) { in AllDefault() 61 if (settings.content_settings.settings[i] != CONTENT_SETTING_DEFAULT) in AllDefault() 166 setting = i->second.content_settings.settings[content_type]; in GetAllContentSettingsRules() 190 output = i->second.content_settings; in GetNonDefaultContentSettings() 198 if (i->second.content_settings.settings[j] != CONTENT_SETTING_DEFAULT) in GetNonDefaultContentSettings() 199 output.settings[j] = i->second.content_settings.settings[j]; in GetNonDefaultContentSettings() 209 output.settings[j] = i->second.content_settings.settings[j]; in GetNonDefaultContentSettings() 216 output.settings[j] = i->second.content_settings.settings[j]; in GetNonDefaultContentSettings() [all …]
|
D | host_content_settings_map.cc | 42 typedef linked_ptr<content_settings::DefaultProviderInterface> 49 typedef linked_ptr<content_settings::ProviderInterface> ProviderPtr; 53 typedef content_settings::ProviderInterface::Rules Rules; 54 typedef content_settings::ProviderInterface::Rules::iterator 56 typedef content_settings::ProviderInterface::Rules::const_iterator 72 new content_settings::PrefDefaultProvider(profile))); in HostContentSettingsMap() 75 new content_settings::PolicyDefaultProvider(profile))); in HostContentSettingsMap() 103 make_linked_ptr(new content_settings::PolicyProvider(profile))); in HostContentSettingsMap() 105 make_linked_ptr(new content_settings::PrefProvider(profile))); in HostContentSettingsMap() 125 content_settings::PrefDefaultProvider::RegisterUserPrefs(prefs); in RegisterUserPrefs() [all …]
|
D | host_content_settings_map.h | 28 namespace content_settings { 204 std::vector<linked_ptr<content_settings::DefaultProviderInterface> > 208 std::vector<linked_ptr<content_settings::ProviderInterface> >
|
D | stub_settings_observer.cc | 23 Source<HostContentSettingsMap> content_settings(source); in Observe() local 25 last_notifier = content_settings.ptr(); in Observe()
|
/external/chromium_org/chrome/browser/extensions/api/content_settings/ |
D | content_settings_store.h | 27 namespace content_settings { 56 content_settings::RuleIterator* GetRuleIterator( 58 const content_settings::ResourceIdentifier& identifier, 71 const content_settings::ResourceIdentifier& identifier, 120 content_settings::OriginIdentifierValueMap* GetValueMap( 124 const content_settings::OriginIdentifierValueMap* GetValueMap(
|
D | content_settings_store_unittest.cc | 19 void CheckRule(const content_settings::Rule& rule, in CheckRule() 25 EXPECT_EQ(setting, content_settings::ValueToContentSetting(rule.value.get())); in CheckRule() 54 scoped_ptr<content_settings::RuleIterator> rule_iterator ( in GetContentSettingFromStore() 57 content_settings::GetContentSettingValueAndPatterns( in GetContentSettingFromStore() 59 return content_settings::ValueToContentSetting(setting.get()); in GetContentSettingFromStore() 67 std::vector<content_settings::Rule>* rules) { in GetSettingsForOneTypeFromStore() 69 scoped_ptr<content_settings::RuleIterator> rule_iterator( in GetSettingsForOneTypeFromStore() 193 std::vector<content_settings::Rule> rules; in TEST_F()
|
D | content_settings_store.cc | 24 using content_settings::ConcatenationIterator; 25 using content_settings::Rule; 26 using content_settings::RuleIterator; 27 using content_settings::OriginIdentifierValueMap; 28 using content_settings::ResourceIdentifier; 29 using content_settings::ValueToContentSetting; 59 const content_settings::ResourceIdentifier& identifier, in GetRuleIterator() 98 const content_settings::ResourceIdentifier& identifier, in SetExtensionContentSetting()
|
/external/chromium_org/chrome/browser/ui/website_settings/ |
D | website_settings_unittest.cc | 160 HostContentSettingsMap* content_settings = in TEST_F() local 162 ContentSetting setting = content_settings->GetContentSetting( in TEST_F() 165 setting = content_settings->GetContentSetting( in TEST_F() 168 setting = content_settings->GetContentSetting( in TEST_F() 171 setting = content_settings->GetContentSetting( in TEST_F() 174 setting = content_settings->GetContentSetting( in TEST_F() 177 setting = content_settings->GetContentSetting( in TEST_F() 209 setting = content_settings->GetContentSetting( in TEST_F() 212 setting = content_settings->GetContentSetting( in TEST_F() 215 setting = content_settings->GetContentSetting( in TEST_F() [all …]
|
D | website_settings_ui.cc | 80 source(content_settings::SETTING_SOURCE_NONE) { in PermissionInfo() 157 content_settings::SettingSource source) { in PermissionActionToUIString() 164 case content_settings::SETTING_SOURCE_USER: in PermissionActionToUIString() 170 case content_settings::SETTING_SOURCE_POLICY: in PermissionActionToUIString() 173 case content_settings::SETTING_SOURCE_EXTENSION: in PermissionActionToUIString() 176 case content_settings::SETTING_SOURCE_WHITELIST: in PermissionActionToUIString() 177 case content_settings::SETTING_SOURCE_NONE: in PermissionActionToUIString()
|
/external/chromium_org/chrome/browser/ |
D | pepper_broker_infobar_delegate.cc | 87 HostContentSettingsMap* content_settings = in Create() local 90 content_settings->GetContentSetting(url, url, in Create() 103 content_settings, tab_content_settings, callback)))); in Create() 119 HostContentSettingsMap* content_settings, in PepperBrokerInfoBarDelegate() argument 126 content_settings_(content_settings), in PepperBrokerInfoBarDelegate()
|
/external/chromium_org/chrome/browser/media/ |
D | chrome_midi_permission_context.cc | 121 TabSpecificContentSettings* content_settings = in NotifyPermissionSet() local 124 if (content_settings) { in NotifyPermissionSet() 126 content_settings->OnMIDISysExAccessed(requesting_frame); in NotifyPermissionSet() 128 content_settings->OnMIDISysExAccessBlocked(requesting_frame); in NotifyPermissionSet()
|