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/renderer/chrome_render_process_observer.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/renderer/chrome_render_process_observer.h')
-rw-r--r-- | chrome/renderer/chrome_render_process_observer.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/chrome/renderer/chrome_render_process_observer.h b/chrome/renderer/chrome_render_process_observer.h index e3ba711..ed4805e 100644 --- a/chrome/renderer/chrome_render_process_observer.h +++ b/chrome/renderer/chrome_render_process_observer.h @@ -41,13 +41,9 @@ class ChromeRenderProcessObserver : public content::RenderProcessObserver { // any 'clear cache' commands that were delayed until the next navigation. void ExecutePendingClearCache(); - // Returns a pointer to the default content settings owned by + // Returns a pointer to the content setting rules owned by // |ChromeRenderProcessObserver|. - const ContentSettings* default_content_settings() const; - - // Returns a pointer to the image setting rules owned by - // |ChromeRenderProcessObserver|. - const ContentSettingsForOneType* image_setting_rules() const; + const RendererContentSettingRules* content_setting_rules() const; private: // RenderProcessObserver implementation. @@ -57,8 +53,7 @@ class ChromeRenderProcessObserver : public content::RenderProcessObserver { void OnSetIsIncognitoProcess(bool is_incognito_process); 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); @@ -79,8 +74,7 @@ class ChromeRenderProcessObserver : public content::RenderProcessObserver { chrome::ChromeContentRendererClient* client_; // 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); }; |