Index: chrome/browser/content_settings/tab_specific_content_settings.cc |
diff --git a/chrome/browser/content_settings/tab_specific_content_settings.cc b/chrome/browser/content_settings/tab_specific_content_settings.cc |
index 53c98ae6abf396adb6c7eaa5cc7f3314cbcd97b2..3d676796696bf06525be519a019ed48d4cc49d63 100644 |
--- a/chrome/browser/content_settings/tab_specific_content_settings.cc |
+++ b/chrome/browser/content_settings/tab_specific_content_settings.cc |
@@ -103,6 +103,8 @@ TabSpecificContentSettings::TabSpecificContentSettings(WebContents* tab) |
pending_protocol_handler_setting_(CONTENT_SETTING_DEFAULT), |
load_plugins_link_enabled_(true), |
microphone_camera_state_(MICROPHONE_CAMERA_NOT_ACCESSED), |
+ subresource_filter_enabled_(false), |
+ subresource_filter_blockage_indicated_(false), |
observer_(this) { |
ClearBlockedContentSettingsExceptForCookies(); |
ClearCookieSpecificContentSettings(); |
@@ -270,6 +272,15 @@ void TabSpecificContentSettings::SetBlockageHasBeenIndicated( |
content_settings_status_[content_type].blockage_indicated_to_user = true; |
} |
+void TabSpecificContentSettings::SetSubresourceFilteringActivationIndicated() { |
+ subresource_filter_blockage_indicated_ = true; |
+} |
+ |
+bool TabSpecificContentSettings::IsSubresourceFilteringActivationIndicated() |
+ const { |
+ return subresource_filter_blockage_indicated_; |
+} |
+ |
bool TabSpecificContentSettings::IsContentAllowed( |
ContentSettingsType content_type) const { |
// This method currently only returns meaningful values for the content type |