| 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() {}
|
| + virtual void OnCancelClicked() OVERRIDE;
|
| + virtual void OnSaveClicked() OVERRIDE;
|
| + private:
|
| + // Sets the title of the bubble.
|
| + void SetTitle();
|
| +
|
| + TabSpecificContentSettings::PasswordSavingState state_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(SavePasswordBubbleModel);
|
| +};
|
| +
|
| class ContentSettingRPHBubbleModel : public ContentSettingTitleAndLinkModel {
|
| public:
|
| ContentSettingRPHBubbleModel(Delegate* delegate,
|
|
|