| 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 28 matching lines...) Expand all Loading... |
| 39 const ScopedVector<autofill::PasswordForm>& password_exception_list) | 39 const ScopedVector<autofill::PasswordForm>& password_exception_list) |
| 40 OVERRIDE; | 40 OVERRIDE; |
| 41 #if !defined(OS_ANDROID) | 41 #if !defined(OS_ANDROID) |
| 42 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; | 42 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; |
| 43 #endif | 43 #endif |
| 44 private: | 44 private: |
| 45 // Clears and then populates the list of passwords and password exceptions. | 45 // Clears and then populates the list of passwords and password exceptions. |
| 46 // Called when the JS PasswordManager object is initialized. | 46 // Called when the JS PasswordManager object is initialized. |
| 47 void HandleUpdatePasswordLists(const base::ListValue* args); | 47 void HandleUpdatePasswordLists(const base::ListValue* args); |
| 48 | 48 |
| 49 // Checks if |origin| is valid for adding a new entry. Called while the user |
| 50 // is editing an origin. |
| 51 void HandleCheckOriginValidityForAdding(const base::ListValue* args); |
| 52 |
| 53 // Adds a new password entry with |origin|, |username_value|, and |
| 54 // |password_value|. |
| 55 void HandleAddPassword(const base::ListValue* args); |
| 56 |
| 57 // Updates the entry at |index| with |password_value|. |
| 58 void HandleUpdatePassword(const base::ListValue* args); |
| 59 |
| 49 // Removes a saved password entry. | 60 // Removes a saved password entry. |
| 50 // |value| the entry index to be removed. | 61 // |value| the entry index to be removed. |
| 51 void HandleRemoveSavedPassword(const base::ListValue* args); | 62 void HandleRemoveSavedPassword(const base::ListValue* args); |
| 52 | 63 |
| 53 // Removes a saved password exception. | 64 // Removes a saved password exception. |
| 54 // |value| the entry index to be removed. | 65 // |value| the entry index to be removed. |
| 55 void HandleRemovePasswordException(const base::ListValue* args); | 66 void HandleRemovePasswordException(const base::ListValue* args); |
| 56 | 67 |
| 57 // Requests the plain text password for an entry to be revealed. | 68 // Requests the plain text password for an entry to be revealed. |
| 58 // |index| The index of the entry. | 69 // |index| The index of the entry. |
| 59 void HandleRequestShowPassword(const base::ListValue* args); | 70 void HandleRequestShowPassword(const base::ListValue* args); |
| 60 | 71 |
| 61 // User pref for storing accept languages. | 72 // User pref for storing accept languages. |
| 62 std::string languages_; | 73 std::string languages_; |
| 63 | 74 |
| 64 // The PasswordManagerPresenter object owned by the this view. | 75 // The PasswordManagerPresenter object owned by the this view. |
| 65 PasswordManagerPresenter password_manager_presenter_; | 76 PasswordManagerPresenter password_manager_presenter_; |
| 66 | 77 |
| 67 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler); | 78 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler); |
| 68 }; | 79 }; |
| 69 | 80 |
| 70 } // namespace options | 81 } // namespace options |
| 71 | 82 |
| 72 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ | 83 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ |
| OLD | NEW |