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

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

Issue 10546083: Convert ProtocolHandlerRegistry to be a ProfileKeyedService. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add missing include. Created 8 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 07c9773d8308982b212b9d493fd5636cf5ba14e1..2cbd58978efd646270cd46f88aa23c9df6dff886 100644
--- a/chrome/browser/ui/content_settings/content_setting_bubble_model.h
+++ b/chrome/browser/ui/content_settings/content_setting_bubble_model.h
@@ -19,6 +19,7 @@
class ContentSettingBubbleModelDelegate;
class Profile;
+class ProtocolHandlerRegistry;
class TabContents;
// This model provides data for ContentSettingBubble, and also controls
@@ -155,9 +156,17 @@ class ContentSettingTitleAndLinkModel : public ContentSettingBubbleModel {
class ContentSettingRPHBubbleModel : public ContentSettingTitleAndLinkModel {
public:
+
+ // Deprecated. Use constructor that accepts a |ProtocolHandlerRegistry|.
Bernhard Bauer 2012/07/19 20:52:56 Remove this constructor please :)
+ ContentSettingRPHBubbleModel(Delegate* delegate,
+ TabContents* tab_contents,
+ Profile* profile,
+ ContentSettingsType content_type);
+
ContentSettingRPHBubbleModel(Delegate* delegate,
TabContents* tab_contents,
Profile* profile,
+ ProtocolHandlerRegistry* registry,
ContentSettingsType content_type);
virtual void OnRadioClicked(int radio_index) OVERRIDE;
@@ -171,12 +180,14 @@ class ContentSettingRPHBubbleModel : public ContentSettingTitleAndLinkModel {
RPH_IGNORE,
};
+ void Init();
void RegisterProtocolHandler();
void UnregisterProtocolHandler();
void IgnoreProtocolHandler();
void ClearOrSetPreviousHandler();
int selected_item_;
+ ProtocolHandlerRegistry* registry_;
ProtocolHandler pending_handler_;
ProtocolHandler previous_handler_;
};

Powered by Google App Engine
This is Rietveld 408576698