diff options
author | marja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-16 11:56:56 +0000 |
---|---|---|
committer | marja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-16 11:56:56 +0000 |
commit | edece2111f69da5328faa06ca23b760016a62bcd (patch) | |
tree | 7fe93400714773d399579a3fdfea22559e7490ce /chrome/common/content_settings.h | |
parent | 2676cd5647572899d3672edf04bf48c65ced5b71 (diff) | |
download | chromium_src-edece2111f69da5328faa06ca23b760016a62bcd.zip chromium_src-edece2111f69da5328faa06ca23b760016a62bcd.tar.gz chromium_src-edece2111f69da5328faa06ca23b760016a62bcd.tar.bz2 |
Take script URLs into account when applying script content settings.
Transmit script content settings to the renderer. Use the script URL as the secondary URL
for the content setting rules.
This CL contains the functionality of the following 2 CLs, hopefully without performance
regressions:
http://codereview.chromium.org/8409006
http://codereview.chromium.org/8498007
BUG=90840
TEST=ChromeRenderViewTest.ContentSettings(Allow|Block)Scripts
Review URL: http://codereview.chromium.org/8538004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110286 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/content_settings.h')
-rw-r--r-- | chrome/common/content_settings.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/chrome/common/content_settings.h b/chrome/common/content_settings.h index ec500b6..6e015ee 100644 --- a/chrome/common/content_settings.h +++ b/chrome/common/content_settings.h @@ -27,14 +27,6 @@ enum ContentSetting { // prefs off disk. ContentSetting IntToContentSetting(int content_setting); -// Aggregates the permissions for the different content types. -struct ContentSettings { - ContentSettings(); - explicit ContentSettings(ContentSetting default_setting); - - ContentSetting settings[CONTENT_SETTINGS_NUM_TYPES]; -}; - struct ContentSettingPatternSource { ContentSettingPatternSource(const ContentSettingsPattern& primary_pattern, const ContentSettingsPattern& secondary_patttern, @@ -51,6 +43,13 @@ struct ContentSettingPatternSource { typedef std::vector<ContentSettingPatternSource> ContentSettingsForOneType; +struct RendererContentSettingRules { + RendererContentSettingRules(); + ~RendererContentSettingRules(); + ContentSettingsForOneType image_rules; + ContentSettingsForOneType script_rules; +}; + namespace content_settings { // Enum containing the various source for content settings. Settings can be |