OLD | NEW |
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 virtual void OnManageLinkClicked() OVERRIDE; | 189 virtual void OnManageLinkClicked() OVERRIDE; |
190 | 190 |
191 Delegate* delegate_; | 191 Delegate* delegate_; |
192 }; | 192 }; |
193 | 193 |
194 class SavePasswordBubbleModel : public ContentSettingTitleAndLinkModel { | 194 class SavePasswordBubbleModel : public ContentSettingTitleAndLinkModel { |
195 public: | 195 public: |
196 SavePasswordBubbleModel(Delegate* delegate, | 196 SavePasswordBubbleModel(Delegate* delegate, |
197 content::WebContents* web_contents, | 197 content::WebContents* web_contents, |
198 Profile* profile); | 198 Profile* profile); |
199 virtual ~SavePasswordBubbleModel() {} | 199 virtual ~SavePasswordBubbleModel(); |
200 virtual void OnCancelClicked() OVERRIDE; | 200 virtual void OnCancelClicked() OVERRIDE; |
201 virtual void OnSaveClicked() OVERRIDE; | 201 virtual void OnSaveClicked() OVERRIDE; |
| 202 |
202 private: | 203 private: |
203 // Sets the title of the bubble. | |
204 void SetTitle(); | 204 void SetTitle(); |
205 | 205 |
206 TabSpecificContentSettings::PasswordSavingState state_; | 206 TabSpecificContentSettings::PasswordSavingState state_; |
207 | 207 |
208 DISALLOW_COPY_AND_ASSIGN(SavePasswordBubbleModel); | 208 DISALLOW_COPY_AND_ASSIGN(SavePasswordBubbleModel); |
209 }; | 209 }; |
210 | 210 |
211 class ContentSettingRPHBubbleModel : public ContentSettingTitleAndLinkModel { | 211 class ContentSettingRPHBubbleModel : public ContentSettingTitleAndLinkModel { |
212 public: | 212 public: |
213 ContentSettingRPHBubbleModel(Delegate* delegate, | 213 ContentSettingRPHBubbleModel(Delegate* delegate, |
(...skipping 19 matching lines...) Expand all Loading... |
233 void IgnoreProtocolHandler(); | 233 void IgnoreProtocolHandler(); |
234 void ClearOrSetPreviousHandler(); | 234 void ClearOrSetPreviousHandler(); |
235 | 235 |
236 int selected_item_; | 236 int selected_item_; |
237 ProtocolHandlerRegistry* registry_; | 237 ProtocolHandlerRegistry* registry_; |
238 ProtocolHandler pending_handler_; | 238 ProtocolHandler pending_handler_; |
239 ProtocolHandler previous_handler_; | 239 ProtocolHandler previous_handler_; |
240 }; | 240 }; |
241 | 241 |
242 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ | 242 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ |
OLD | NEW |