Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(492)

Unified Diff: chrome/browser/ui/content_settings/content_setting_bubble_model.h

Issue 2171713002: Safe browsing subresource filter bubble UI skeleton. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self review Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698