diff options
author | marja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-09 10:02:45 +0000 |
---|---|---|
committer | marja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-09 10:02:45 +0000 |
commit | fa775cf16c88fbf3176df7724b2009d62869c361 (patch) | |
tree | 2b553465d8b32a1d231bda70d55bdc0317196612 /chrome/renderer/chrome_render_process_observer.h | |
parent | 4db9f28275062950f16dcce294aee6a66f84c6f3 (diff) | |
download | chromium_src-fa775cf16c88fbf3176df7724b2009d62869c361.zip chromium_src-fa775cf16c88fbf3176df7724b2009d62869c361.tar.gz chromium_src-fa775cf16c88fbf3176df7724b2009d62869c361.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.
BUG=90840
TEST=ChromeRenderViewTest.ContentSettings(Allow|Block)Scripts
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109005
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109036
Review URL: http://codereview.chromium.org/8409006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109213 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/chrome_render_process_observer.h')
-rw-r--r-- | chrome/renderer/chrome_render_process_observer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/renderer/chrome_render_process_observer.h b/chrome/renderer/chrome_render_process_observer.h index e3ba711..74ab740 100644 --- a/chrome/renderer/chrome_render_process_observer.h +++ b/chrome/renderer/chrome_render_process_observer.h @@ -45,9 +45,9 @@ class ChromeRenderProcessObserver : public content::RenderProcessObserver { // |ChromeRenderProcessObserver|. const ContentSettings* default_content_settings() const; - // Returns a pointer to the image setting rules owned by + // Returns a pointer to the content setting rules owned by // |ChromeRenderProcessObserver|. - const ContentSettingsForOneType* image_setting_rules() const; + const RendererContentSettingRules* content_setting_rules() const; private: // RenderProcessObserver implementation. @@ -58,7 +58,7 @@ class ChromeRenderProcessObserver : public content::RenderProcessObserver { void OnSetContentSettingsForCurrentURL( const GURL& url, const ContentSettings& content_settings); void OnSetDefaultContentSettings(const ContentSettings& content_settings); - void OnSetImageSettingRules(const ContentSettingsForOneType& settings); + void OnSetContentSettingRules(const RendererContentSettingRules& rules); void OnSetCacheCapacities(size_t min_dead_capacity, size_t max_dead_capacity, size_t capacity); @@ -80,7 +80,7 @@ class ChromeRenderProcessObserver : public content::RenderProcessObserver { // If true, the web cache shall be cleared before the next navigation event. bool clear_cache_pending_; ContentSettings default_content_settings_; - ContentSettingsForOneType image_setting_rules_; + RendererContentSettingRules content_setting_rules_; DISALLOW_COPY_AND_ASSIGN(ChromeRenderProcessObserver); }; |