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

Side by Side Diff: chrome/browser/ui/content_settings/content_setting_bubble_model.h

Issue 1312053006: Remove CONTENT_SETTINGS_NUM_TYPES (part 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@website-settings-registry-4
Patch Set: Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_
6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ 6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 std::string custom_link; 90 std::string custom_link;
91 bool custom_link_enabled; 91 bool custom_link_enabled;
92 std::string manage_link; 92 std::string manage_link;
93 MediaMenuMap media_menus; 93 MediaMenuMap media_menus;
94 std::string learn_more_link; 94 std::string learn_more_link;
95 95
96 private: 96 private:
97 DISALLOW_COPY_AND_ASSIGN(BubbleContent); 97 DISALLOW_COPY_AND_ASSIGN(BubbleContent);
98 }; 98 };
99 99
100 // Returns a vector of the Supported bubble types.
101 static const std::set<ContentSettingsType>& GetSupportedBubbleTypes();
102
103 // Returns true if the given ContentSettingsType has a bubble.
104 static bool HasBubble(ContentSettingsType type);
tapted 2015/09/03 06:36:38 HasBubbleForType? (HasBubble sounds too much like
raymes 2015/09/07 04:29:27 I removed this and changed the callers to just che
105
100 static ContentSettingBubbleModel* CreateContentSettingBubbleModel( 106 static ContentSettingBubbleModel* CreateContentSettingBubbleModel(
101 Delegate* delegate, 107 Delegate* delegate,
102 content::WebContents* web_contents, 108 content::WebContents* web_contents,
103 Profile* profile, 109 Profile* profile,
104 ContentSettingsType content_type); 110 ContentSettingsType content_type);
105 111
106 ~ContentSettingBubbleModel() override; 112 ~ContentSettingBubbleModel() override;
107 113
108 ContentSettingsType content_type() const { return content_type_; } 114 ContentSettingsType content_type() const { return content_type_; }
109 115
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 void IgnoreProtocolHandler(); 230 void IgnoreProtocolHandler();
225 void ClearOrSetPreviousHandler(); 231 void ClearOrSetPreviousHandler();
226 232
227 int selected_item_; 233 int selected_item_;
228 ProtocolHandlerRegistry* registry_; 234 ProtocolHandlerRegistry* registry_;
229 ProtocolHandler pending_handler_; 235 ProtocolHandler pending_handler_;
230 ProtocolHandler previous_handler_; 236 ProtocolHandler previous_handler_;
231 }; 237 };
232 238
233 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ 239 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698