Chromium Code Reviews| 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 bc88e9643d7b8298f304f981d827203d44b25e8d..73f350035191d928f49dede208b288b5a6b5561d 100644 |
| --- a/chrome/browser/ui/content_settings/content_setting_bubble_model.h |
| +++ b/chrome/browser/ui/content_settings/content_setting_bubble_model.h |
| @@ -11,6 +11,7 @@ |
| #include <vector> |
| #include "base/compiler_specific.h" |
| +#include "chrome/browser/content_settings/tab_specific_content_settings.h" |
| #include "chrome/common/content_settings.h" |
| #include "chrome/common/custom_handlers/protocol_handler.h" |
| #include "content/public/browser/notification_observer.h" |
| @@ -112,10 +113,16 @@ class ContentSettingBubbleModel : public content::NotificationObserver { |
| virtual void OnMediaMenuClicked(content::MediaStreamType type, |
| const std::string& selected_device_id) {} |
| + // Called by the view code when the cancel button in clicked by the user. |
| + virtual void OnCancelClicked() {} |
| + |
| // Called by the view code when the bubble is closed by the user using the |
| // Done button. |
| virtual void OnDoneClicked() {} |
| + // Called by the view code when the save button in clicked by the user. |
| + virtual void OnSaveClicked() {} |
| + |
| protected: |
| ContentSettingBubbleModel( |
| content::WebContents* web_contents, |
| @@ -184,6 +191,23 @@ class ContentSettingTitleAndLinkModel : public ContentSettingBubbleModel { |
| Delegate* delegate_; |
| }; |
| +class SavePasswordBubbleModel : public ContentSettingTitleAndLinkModel { |
| + public: |
| + SavePasswordBubbleModel(Delegate* delegate, |
| + content::WebContents* web_contents, |
| + Profile* profile); |
| + virtual ~SavePasswordBubbleModel() {} |
|
Peter Kasting
2013/09/09 18:19:02
Nit: Don't define virtual functions inline (even e
npentrel
2013/09/09 22:08:34
Done.
|
| + virtual void OnCancelClicked() OVERRIDE; |
| + virtual void OnSaveClicked() OVERRIDE; |
| + private: |
|
Peter Kasting
2013/09/09 18:19:02
Nit: Blank line above
npentrel
2013/09/09 22:08:34
Done.
|
| + // Sets the title of the bubble. |
|
Peter Kasting
2013/09/09 18:19:02
Nit: This comment adds nothing to the function nam
npentrel
2013/09/09 22:08:34
Done.
|
| + void SetTitle(); |
| + |
| + TabSpecificContentSettings::PasswordSavingState state_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(SavePasswordBubbleModel); |
| +}; |
| + |
| class ContentSettingRPHBubbleModel : public ContentSettingTitleAndLinkModel { |
| public: |
| ContentSettingRPHBubbleModel(Delegate* delegate, |