| Index: chrome/browser/ui/content_settings/content_setting_bubble_model.h
|
| diff --git a/chrome/browser/ui/content_settings/content_setting_bubble_model.h b/chrome/browser/ui/content_settings/content_setting_bubble_model.h
|
| index 93c1d624c13b1eb467aa5144175e30ff67acb917..60f3b16b8f7d1c94902faa2ac01c15a6f6a25ff8 100644
|
| --- a/chrome/browser/ui/content_settings/content_setting_bubble_model.h
|
| +++ b/chrome/browser/ui/content_settings/content_setting_bubble_model.h
|
| @@ -45,10 +45,12 @@ class WebContents;
|
| // ContentSettingCookiesBubbleModel - cookies
|
| // ContentSettingPluginBubbleModel - plugins
|
| // ContentSettingPopupBubbleModel - popups
|
| +// ContentSettingSubresourceFilterBubbleModel - deceptive content
|
|
|
| // Forward declaration necessary for downcasts.
|
| class ContentSettingSimpleBubbleModel;
|
| class ContentSettingMediaStreamBubbleModel;
|
| +class ContentSettingSubresourceFilterBubbleModel;
|
|
|
| // This model provides data for ContentSettingBubble, and also controls
|
| // the action triggered when the allow / block radio buttons are triggered.
|
| @@ -162,6 +164,11 @@ class ContentSettingBubbleModel : public content::NotificationObserver {
|
| // Cast this bubble into ContentSettingMediaStreamBubbleModel if possible.
|
| virtual ContentSettingMediaStreamBubbleModel* AsMediaStreamBubbleModel();
|
|
|
| + // Cast this bubble into ContentSettingSubresourceFilterBubbleModel
|
| + // if possible.
|
| + virtual ContentSettingSubresourceFilterBubbleModel*
|
| + AsSubresourceFilterBubbleModel();
|
| +
|
| protected:
|
| ContentSettingBubbleModel(
|
| Delegate* delegate,
|
| @@ -334,4 +341,25 @@ class ContentSettingMediaStreamBubbleModel : public ContentSettingBubbleModel {
|
| DISALLOW_COPY_AND_ASSIGN(ContentSettingMediaStreamBubbleModel);
|
| };
|
|
|
| +class ContentSettingSubresourceFilterBubbleModel
|
| + : public ContentSettingBubbleModel {
|
| + public:
|
| + ContentSettingSubresourceFilterBubbleModel(Delegate* delegate,
|
| + content::WebContents* web_contents,
|
| + Profile* profile);
|
| +
|
| + ~ContentSettingSubresourceFilterBubbleModel() override;
|
| +
|
| + void OnManageLinkClicked() override;
|
| + ContentSettingSubresourceFilterBubbleModel* AsSubresourceFilterBubbleModel()
|
| + override;
|
| +
|
| + private:
|
| + // ContentSettingBubbleModel:
|
| + void SetTitle() override;
|
| + void SetManageLink() override;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ContentSettingSubresourceFilterBubbleModel);
|
| +};
|
| +
|
| #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_
|
|
|