Chromium Code Reviews
DescriptionAdd a method to the content_settings::ProviderInterface to return the |Value| of a content setting instead of a |ContentSetting| type.
The HostContentSettingsMap should allow storing arbitrary |Value|s instead of only |ContentSettings| for content settings types (BTW: content settings should be called website settings). This allows to add other content settings type(website settings types) to the host content settings map that require more complex settings than ALLOW, BLOCK, ASK, ... . CONTENT_TYPE_AUTO_SELECT_CERTIFICATE is one example of such a content settings type. CONTENT_TYPE_AUTO_SELECT_CERTIFICATE requires a map with certain criteria that a certificate must match to be selected.
This is the first CL to migrate the content settings code to user |Value|s instead of |ContentSetting|s.
BUG=63656, 81825
TEST=host_content_settings_map_unittest.cc,
content_settings_pref_provider.cc,
content_settings_policy_provider.cc,
content_settings_provider_unittest.cc
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99639
Patch Set 1 #
Total comments: 4
Patch Set 2 : Bernhard's comments addressed. #Patch Set 3 : Add unittests. #Patch Set 4 : Remove orphan code in content_settings_policy_provider_unittest.cc. sry #
Total comments: 8
Patch Set 5 : Comments addressed. #Messages
Total messages: 8 (0 generated)
|