| Index: chrome/renderer/content_settings_observer.h
|
| diff --git a/chrome/renderer/content_settings_observer.h b/chrome/renderer/content_settings_observer.h
|
| index afe0bb9e54909e461e32e11fcb11709cd625fbe6..f9db715210358438a077d16d9f7a9b8f91d6744e 100644
|
| --- a/chrome/renderer/content_settings_observer.h
|
| +++ b/chrome/renderer/content_settings_observer.h
|
| @@ -24,15 +24,15 @@ class ContentSettingsObserver
|
| : public content::RenderViewObserver,
|
| public content::RenderViewObserverTracker<ContentSettingsObserver> {
|
| public:
|
| - explicit ContentSettingsObserver(content::RenderView* render_view);
|
| + ContentSettingsObserver(content::RenderView* render_view,
|
| + const ContentSettingsForOneType* image_setting_rules);
|
| virtual ~ContentSettingsObserver();
|
|
|
| - // Sets the content settings that back allowScripts(), allowImages(), and
|
| - // allowPlugins().
|
| + // Sets the content settings that back allowScripts() and allowPlugins().
|
| void SetContentSettings(const ContentSettings& settings);
|
|
|
| - // Sets the default content settings that back allowScripts(),
|
| - // allowImages(), and allowPlugins().
|
| + // Sets the default content settings that back allowScripts() and
|
| + // allowPlugins().
|
| static void SetDefaultContentSettings(const ContentSettings& settings);
|
|
|
| // Returns the setting for the given type.
|
| @@ -86,11 +86,16 @@ class ContentSettingsObserver
|
| HostContentSettings host_content_settings_;
|
|
|
| // Stores our most up-to-date view of the default content settings.
|
| + // TODO(marja): Store default settings in |ChromeRenderProcessObserver|.
|
| static ContentSettings default_settings_;
|
|
|
| - // Stores if loading of images, scripts, and plugins is allowed.
|
| + // Stores if loading of scripts and plugins is allowed.
|
| ContentSettings current_content_settings_;
|
|
|
| + // Stores the rules for image content settings. Owned by
|
| + // |ChromeRenderProcessObserver|.
|
| + const ContentSettingsForOneType* image_setting_rules_;
|
| +
|
| // Stores if images, scripts, and plugins have actually been blocked.
|
| bool content_blocked_[CONTENT_SETTINGS_NUM_TYPES];
|
|
|
|
|