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 | |
60 // Removes a saved password entry. | 49 // Removes a saved password entry. |
61 // |value| the entry index to be removed. | 50 // |value| the entry index to be removed. |
62 void HandleRemoveSavedPassword(const base::ListValue* args); | 51 void HandleRemoveSavedPassword(const base::ListValue* args); |
63 | 52 |
64 // Removes a saved password exception. | 53 // Removes a saved password exception. |
65 // |value| the entry index to be removed. | 54 // |value| the entry index to be removed. |
66 void HandleRemovePasswordException(const base::ListValue* args); | 55 void HandleRemovePasswordException(const base::ListValue* args); |
67 | 56 |
68 // Requests the plain text password for an entry to be revealed. | 57 // Requests the plain text password for an entry to be revealed. |
69 // |index| The index of the entry. | 58 // |index| The index of the entry. |
70 void HandleRequestShowPassword(const base::ListValue* args); | 59 void HandleRequestShowPassword(const base::ListValue* args); |
71 | 60 |
72 // User pref for storing accept languages. | 61 // User pref for storing accept languages. |
73 std::string languages_; | 62 std::string languages_; |
74 | 63 |
75 // The PasswordManagerPresenter object owned by the this view. | 64 // The PasswordManagerPresenter object owned by the this view. |
76 PasswordManagerPresenter password_manager_presenter_; | 65 PasswordManagerPresenter password_manager_presenter_; |
77 | 66 |
78 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler); | 67 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler); |
79 }; | 68 }; |
80 | 69 |
81 } // namespace options | 70 } // namespace options |
82 | 71 |
83 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ | 72 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ |
OLD | NEW |