Index: chrome/browser/content_setting_bubble_model.h |
=================================================================== |
--- chrome/browser/content_setting_bubble_model.h (revision 42643) |
+++ chrome/browser/content_setting_bubble_model.h (working copy) |
@@ -13,6 +13,7 @@ |
#include "chrome/common/notification_registrar.h" |
#include "third_party/skia/include/core/SkBitmap.h" |
+class GURL; |
class Profile; |
class SkBitmap; |
class TabContents; |
@@ -46,11 +47,18 @@ |
}; |
typedef std::vector<RadioGroup> RadioGroups; |
+ struct DomainList { |
+ std::string title; |
+ std::vector<GURL> hosts; |
+ }; |
+ |
struct BubbleContent { |
std::string title; |
PopupItems popup_items; |
RadioGroups radio_groups; |
+ std::vector<DomainList> domain_lists; |
std::string manage_link; |
+ std::string clear_link; |
}; |
const BubbleContent& bubble_content() const { return bubble_content_; } |
@@ -63,6 +71,7 @@ |
virtual void OnRadioClicked(int radio_group, int radio_index) {} |
virtual void OnPopupClicked(int index) {} |
virtual void OnManageLinkClicked() {} |
+ virtual void OnClearLinkClicked() {} |
protected: |
ContentSettingBubbleModel(TabContents* tab_contents, Profile* profile, |
@@ -78,9 +87,15 @@ |
void add_radio_group(const RadioGroup& radio_group) { |
bubble_content_.radio_groups.push_back(radio_group); |
} |
+ 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; |
+ } |
private: |
TabContents* tab_contents_; |
Property changes on: chrome\browser\content_setting_bubble_model.h |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |