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 // Updates the password value of an entry. | |
vabr (Chromium)
2014/08/22 10:11:44
nit: Similarly, consider shortening the whole comm
jaekyeom
2014/08/25 05:15:51
Done.
| |
50 // |index| the entry index to be updated. | |
51 // |password_value| the new password value. | |
52 void HandleUpdatePassword(const base::ListValue* args); | |
53 | |
49 // Removes a saved password entry. | 54 // Removes a saved password entry. |
50 // |value| the entry index to be removed. | 55 // |value| the entry index to be removed. |
51 void HandleRemoveSavedPassword(const base::ListValue* args); | 56 void HandleRemoveSavedPassword(const base::ListValue* args); |
52 | 57 |
53 // Removes a saved password exception. | 58 // Removes a saved password exception. |
54 // |value| the entry index to be removed. | 59 // |value| the entry index to be removed. |
55 void HandleRemovePasswordException(const base::ListValue* args); | 60 void HandleRemovePasswordException(const base::ListValue* args); |
56 | 61 |
57 // Requests the plain text password for an entry to be revealed. | 62 // Requests the plain text password for an entry to be revealed. |
58 // |index| The index of the entry. | 63 // |index| The index of the entry. |
59 void HandleRequestShowPassword(const base::ListValue* args); | 64 void HandleRequestShowPassword(const base::ListValue* args); |
60 | 65 |
61 // User pref for storing accept languages. | 66 // User pref for storing accept languages. |
62 std::string languages_; | 67 std::string languages_; |
63 | 68 |
64 // The PasswordManagerPresenter object owned by the this view. | 69 // The PasswordManagerPresenter object owned by the this view. |
65 PasswordManagerPresenter password_manager_presenter_; | 70 PasswordManagerPresenter password_manager_presenter_; |
66 | 71 |
67 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler); | 72 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler); |
68 }; | 73 }; |
69 | 74 |
70 } // namespace options | 75 } // namespace options |
71 | 76 |
72 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ | 77 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ |
OLD | NEW |