| 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_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // PasswordUIView implementation. | 30 // PasswordUIView implementation. |
| 31 virtual Profile* GetProfile() OVERRIDE; | 31 virtual Profile* GetProfile() OVERRIDE; |
| 32 virtual void ShowPassword(size_t index, const string16& password_value) | 32 virtual void ShowPassword(size_t index, const string16& password_value) |
| 33 OVERRIDE; | 33 OVERRIDE; |
| 34 virtual void SetPasswordList( | 34 virtual void SetPasswordList( |
| 35 const ScopedVector<autofill::PasswordForm>& password_list, | 35 const ScopedVector<autofill::PasswordForm>& password_list, |
| 36 bool show_passwords) OVERRIDE; | 36 bool show_passwords) OVERRIDE; |
| 37 virtual void SetPasswordExceptionList( | 37 virtual void SetPasswordExceptionList( |
| 38 const ScopedVector<autofill::PasswordForm>& password_exception_list) | 38 const ScopedVector<autofill::PasswordForm>& password_exception_list) |
| 39 OVERRIDE; | 39 OVERRIDE; |
| 40 virtual content::WebContents* GetWebContents() OVERRIDE; |
| 40 | 41 |
| 41 private: | 42 private: |
| 42 // Clears and then populates the list of passwords and password exceptions. | 43 // Clears and then populates the list of passwords and password exceptions. |
| 43 // Called when the JS PasswordManager object is initialized. | 44 // Called when the JS PasswordManager object is initialized. |
| 44 void HandleUpdatePasswordLists(const ListValue* args); | 45 void HandleUpdatePasswordLists(const ListValue* args); |
| 45 | 46 |
| 46 // Removes a saved password entry. | 47 // Removes a saved password entry. |
| 47 // |value| the entry index to be removed. | 48 // |value| the entry index to be removed. |
| 48 void HandleRemoveSavedPassword(const ListValue* args); | 49 void HandleRemoveSavedPassword(const ListValue* args); |
| 49 | 50 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 60 | 61 |
| 61 // The PasswordManagerPresenter object owned by the this view. | 62 // The PasswordManagerPresenter object owned by the this view. |
| 62 PasswordManagerPresenter password_manager_presenter_; | 63 PasswordManagerPresenter password_manager_presenter_; |
| 63 | 64 |
| 64 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler); | 65 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler); |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 } // namespace options | 68 } // namespace options |
| 68 | 69 |
| 69 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ | 70 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ |
| OLD | NEW |