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 private: | 202 private: |
Peter Kasting
2013/09/10 23:04:41
Nit: Blank line above this.
npentrel
2013/09/11 09:10:42
Done.
| |
203 // Sets the title of the bubble. | |
204 void SetTitle(); | 203 void SetTitle(); |
205 | 204 |
206 TabSpecificContentSettings::PasswordSavingState state_; | 205 TabSpecificContentSettings::PasswordSavingState state_; |
207 | 206 |
208 DISALLOW_COPY_AND_ASSIGN(SavePasswordBubbleModel); | 207 DISALLOW_COPY_AND_ASSIGN(SavePasswordBubbleModel); |
209 }; | 208 }; |
210 | 209 |
211 class ContentSettingRPHBubbleModel : public ContentSettingTitleAndLinkModel { | 210 class ContentSettingRPHBubbleModel : public ContentSettingTitleAndLinkModel { |
212 public: | 211 public: |
213 ContentSettingRPHBubbleModel(Delegate* delegate, | 212 ContentSettingRPHBubbleModel(Delegate* delegate, |
(...skipping 19 matching lines...) Expand all Loading... | |
233 void IgnoreProtocolHandler(); | 232 void IgnoreProtocolHandler(); |
234 void ClearOrSetPreviousHandler(); | 233 void ClearOrSetPreviousHandler(); |
235 | 234 |
236 int selected_item_; | 235 int selected_item_; |
237 ProtocolHandlerRegistry* registry_; | 236 ProtocolHandlerRegistry* registry_; |
238 ProtocolHandler pending_handler_; | 237 ProtocolHandler pending_handler_; |
239 ProtocolHandler previous_handler_; | 238 ProtocolHandler previous_handler_; |
240 }; | 239 }; |
241 | 240 |
242 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ | 241 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ |
OLD | NEW |