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

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

Issue 2171713002: Safe browsing subresource filter bubble UI skeleton. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Verified xib file 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_image_model.h
diff --git a/chrome/browser/ui/content_settings/content_setting_image_model.h b/chrome/browser/ui/content_settings/content_setting_image_model.h
index 7daf444a9918160213a16175806118d14ff7b84d..d6601e63a6f204673a3e8594521a1629a089a026 100644
--- a/chrome/browser/ui/content_settings/content_setting_image_model.h
+++ b/chrome/browser/ui/content_settings/content_setting_image_model.h
@@ -122,4 +122,24 @@ class ContentSettingSimpleImageModel : public ContentSettingImageModel {
DISALLOW_COPY_AND_ASSIGN(ContentSettingSimpleImageModel);
};
+// Image model for subresource filter icons in the location bar.
+class ContentSettingSubresourceFilterImageModel
+ : public ContentSettingImageModel {
+ public:
+ ContentSettingSubresourceFilterImageModel();
+
+ void UpdateFromWebContents(content::WebContents* web_contents) override;
+
+ ContentSettingBubbleModel* CreateBubbleModel(
+ ContentSettingBubbleModel::Delegate* delegate,
+ content::WebContents* web_contents,
+ Profile* profile) override;
+
+ bool ShouldRunAnimation(content::WebContents* web_contents) override;
+ void SetAnimationHasRun(content::WebContents* web_contents) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ContentSettingSubresourceFilterImageModel);
+};
+
#endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_IMAGE_MODEL_H_

Powered by Google App Engine
This is Rietveld 408576698