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

Unified Diff: chrome/browser/content_setting_bubble_model.h

Issue 5564007: Update Content Settings Bubbles (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Address additional CR feedback Created 10 years 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
« no previous file with comments | « no previous file | chrome/browser/content_setting_bubble_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/content_setting_bubble_model.h
diff --git a/chrome/browser/content_setting_bubble_model.h b/chrome/browser/content_setting_bubble_model.h
index 49af1b29bad1b2e13d5d081bf10b1439b074a063..f1b53c605606e1a9d8b84396b43377a1be1f99e7 100644
--- a/chrome/browser/content_setting_bubble_model.h
+++ b/chrome/browser/content_setting_bubble_model.h
@@ -68,11 +68,9 @@ class ContentSettingBubbleModel : public NotificationObserver {
RadioGroup radio_group;
std::vector<DomainList> domain_lists;
std::set<std::string> resource_identifiers;
+ std::string custom_link;
+ bool custom_link_enabled;
std::string manage_link;
- std::string clear_link;
- std::string info_link;
- std::string load_plugins_link_title;
- bool load_plugins_link_enabled;
private:
DISALLOW_COPY_AND_ASSIGN(BubbleContent);
@@ -87,10 +85,8 @@ class ContentSettingBubbleModel : public NotificationObserver {
virtual void OnRadioClicked(int radio_index) {}
virtual void OnPopupClicked(int index) {}
+ virtual void OnCustomLinkClicked() {}
virtual void OnManageLinkClicked() {}
- virtual void OnClearLinkClicked() {}
- virtual void OnInfoLinkClicked() {}
- virtual void OnLoadPluginsLinkClicked() {}
protected:
ContentSettingBubbleModel(TabContents* tab_contents, Profile* profile,
@@ -109,20 +105,14 @@ class ContentSettingBubbleModel : public NotificationObserver {
void add_domain_list(const DomainList& domain_list) {
bubble_content_.domain_lists.push_back(domain_list);
}
- void set_manage_link(const std::string& link) {
- bubble_content_.manage_link = link;
- }
- void set_clear_link(const std::string& link) {
- bubble_content_.clear_link = link;
+ void set_custom_link(const std::string& link) {
+ bubble_content_.custom_link = link;
}
- void set_info_link(const std::string& link) {
- bubble_content_.info_link = link;
+ void set_custom_link_enabled(bool enabled) {
+ bubble_content_.custom_link_enabled = enabled;
}
- void set_load_plugins_link_title(const std::string& title) {
- bubble_content_.load_plugins_link_title = title;
- }
- void set_load_plugins_link_enabled(bool enabled) {
- bubble_content_.load_plugins_link_enabled = enabled;
+ void set_manage_link(const std::string& link) {
+ bubble_content_.manage_link = link;
}
void AddBlockedResource(const std::string& resource_identifier);
« no previous file with comments | « no previous file | chrome/browser/content_setting_bubble_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698