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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 21 matching lines...) Expand all Loading... |
32 void RegisterMessages() override; | 32 void RegisterMessages() override; |
33 | 33 |
34 // PasswordUIView implementation. | 34 // PasswordUIView implementation. |
35 Profile* GetProfile() override; | 35 Profile* GetProfile() override; |
36 void ShowPassword( | 36 void ShowPassword( |
37 size_t index, | 37 size_t index, |
38 const std::string& origin_url, | 38 const std::string& origin_url, |
39 const std::string& username, | 39 const std::string& username, |
40 const base::string16& password_value) override; | 40 const base::string16& password_value) override; |
41 void SetPasswordList( | 41 void SetPasswordList( |
42 const std::vector<scoped_ptr<autofill::PasswordForm>>& password_list) | 42 const std::vector<std::unique_ptr<autofill::PasswordForm>>& password_list) |
43 override; | 43 override; |
44 void SetPasswordExceptionList( | 44 void SetPasswordExceptionList( |
45 const std::vector<scoped_ptr<autofill::PasswordForm>>& | 45 const std::vector<std::unique_ptr<autofill::PasswordForm>>& |
46 password_exception_list) override; | 46 password_exception_list) override; |
47 #if !defined(OS_ANDROID) | 47 #if !defined(OS_ANDROID) |
48 gfx::NativeWindow GetNativeWindow() const override; | 48 gfx::NativeWindow GetNativeWindow() const override; |
49 #endif | 49 #endif |
50 private: | 50 private: |
51 // Clears and then populates the list of passwords and password exceptions. | 51 // Clears and then populates the list of passwords and password exceptions. |
52 // Called when the JS PasswordManager object is initialized. | 52 // Called when the JS PasswordManager object is initialized. |
53 void HandleUpdatePasswordLists(const base::ListValue* args); | 53 void HandleUpdatePasswordLists(const base::ListValue* args); |
54 | 54 |
55 // Removes a saved password entry. | 55 // Removes a saved password entry. |
(...skipping 10 matching lines...) Expand all Loading... |
66 | 66 |
67 // The PasswordManagerPresenter object owned by the this view. | 67 // The PasswordManagerPresenter object owned by the this view. |
68 PasswordManagerPresenter password_manager_presenter_; | 68 PasswordManagerPresenter password_manager_presenter_; |
69 | 69 |
70 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler); | 70 DISALLOW_COPY_AND_ASSIGN(PasswordManagerHandler); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace options | 73 } // namespace options |
74 | 74 |
75 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ | 75 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_PASSWORD_MANAGER_HANDLER_H_ |
OLD | NEW |