Index: chrome/browser/ui/passwords/manage_passwords_bubble_model.h |
diff --git a/chrome/browser/ui/passwords/manage_passwords_bubble_model.h b/chrome/browser/ui/passwords/manage_passwords_bubble_model.h |
index 92f7fee91e956338192a3dd143d8559814e39020..bc17ab65c1143af94db940676d4453ee6ff1e9f1 100644 |
--- a/chrome/browser/ui/passwords/manage_passwords_bubble_model.h |
+++ b/chrome/browser/ui/passwords/manage_passwords_bubble_model.h |
@@ -43,6 +43,11 @@ class ManagePasswordsBubbleModel : public content::WebContentsObserver { |
// Called by the view code when the "Never for this site." button in clicked |
// by the user and user gets confirmation bubble. |
void OnConfirmationForNeverForThisSite(); |
+ // Call by the view code when user agreed to URL collection. |
+ void OnCollectURLClicked(); |
+ |
+ // Called by the view code when user didn't allow to collect URL. |
+ void OnDoNotCollectURLClicked(); |
// Called by the view code when the "Nope" button in clicked by the user. |
void OnNopeClicked(); |
@@ -78,6 +83,8 @@ class ManagePasswordsBubbleModel : public content::WebContentsObserver { |
// Called by the view code to notify about chosen credential. |
void OnChooseCredentials(const autofill::PasswordForm& password_form); |
+ GURL origin() const { return origin_; } |
+ |
password_manager::ui::State state() const { return state_; } |
const base::string16& title() const { return title_; } |
@@ -120,6 +127,8 @@ class ManagePasswordsBubbleModel : public content::WebContentsObserver { |
static int PasswordFieldWidth(); |
private: |
+ // URL of the page from where this bubble was triggered. |
+ GURL origin_; |
password_manager::ui::State state_; |
base::string16 title_; |
autofill::PasswordForm pending_password_; |