| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
| 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
| 7 | 7 |
| 8 #include "components/autofill/core/common/password_form.h" | 8 #include "components/autofill/core/common/password_form.h" |
| 9 #include "content/public/browser/web_contents_observer.h" | 9 #include "content/public/browser/web_contents_observer.h" |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 } | 58 } |
| 59 | 59 |
| 60 bool password_submitted() { return password_submitted_; } | 60 bool password_submitted() { return password_submitted_; } |
| 61 const base::string16& title() { return title_; } | 61 const base::string16& title() { return title_; } |
| 62 const autofill::PasswordForm& pending_credentials() { | 62 const autofill::PasswordForm& pending_credentials() { |
| 63 return pending_credentials_; | 63 return pending_credentials_; |
| 64 } | 64 } |
| 65 const autofill::PasswordFormMap& best_matches() { return best_matches_; } | 65 const autofill::PasswordFormMap& best_matches() { return best_matches_; } |
| 66 const base::string16& manage_link() { return manage_link_; } | 66 const base::string16& manage_link() { return manage_link_; } |
| 67 | 67 |
| 68 // Given a password string, convert it into an appropriate number of bullet |
| 69 // icons for display. |
| 70 static base::string16 GetPasswordDisplayString( |
| 71 const base::string16& password); |
| 72 |
| 68 private: | 73 private: |
| 69 // content::WebContentsObserver | 74 // content::WebContentsObserver |
| 70 virtual void WebContentsDestroyed( | 75 virtual void WebContentsDestroyed( |
| 71 content::WebContents* web_contents) OVERRIDE; | 76 content::WebContents* web_contents) OVERRIDE; |
| 72 | 77 |
| 73 content::WebContents* web_contents_; | 78 content::WebContents* web_contents_; |
| 74 ManagePasswordsBubbleState manage_passwords_bubble_state_; | 79 ManagePasswordsBubbleState manage_passwords_bubble_state_; |
| 75 bool password_submitted_; | 80 bool password_submitted_; |
| 76 base::string16 title_; | 81 base::string16 title_; |
| 77 autofill::PasswordForm pending_credentials_; | 82 autofill::PasswordForm pending_credentials_; |
| 78 autofill::PasswordFormMap best_matches_; | 83 autofill::PasswordFormMap best_matches_; |
| 79 base::string16 manage_link_; | 84 base::string16 manage_link_; |
| 80 | 85 |
| 81 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); | 86 DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleModel); |
| 82 }; | 87 }; |
| 83 | 88 |
| 84 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ | 89 #endif // CHROME_BROWSER_UI_PASSWORDS_MANAGE_PASSWORDS_BUBBLE_MODEL_H_ |
| OLD | NEW |