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_PASSWORDS_PASSWORD_UI_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ |
6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ | 6 #define CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
| 10 #include <memory> |
10 #include <string> | 11 #include <string> |
11 #include <vector> | 12 #include <vector> |
12 | 13 |
13 #include "base/memory/scoped_ptr.h" | |
14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
15 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
16 | 16 |
17 namespace autofill { | 17 namespace autofill { |
18 struct PasswordForm; | 18 struct PasswordForm; |
19 } | 19 } |
20 | 20 |
21 class Profile; | 21 class Profile; |
22 | 22 |
23 // An interface for a passwords UI View. A UI view is responsible for | 23 // An interface for a passwords UI View. A UI view is responsible for |
(...skipping 14 matching lines...) Expand all Loading... |
38 // |password_value| the value of saved password entry at |index|. | 38 // |password_value| the value of saved password entry at |index|. |
39 virtual void ShowPassword(size_t index, | 39 virtual void ShowPassword(size_t index, |
40 const std::string& origin_url, | 40 const std::string& origin_url, |
41 const std::string& username, | 41 const std::string& username, |
42 const base::string16& password_value) = 0; | 42 const base::string16& password_value) = 0; |
43 | 43 |
44 // Updates the list of passwords in the UI. | 44 // Updates the list of passwords in the UI. |
45 // |password_list| the list of saved password entries. | 45 // |password_list| the list of saved password entries. |
46 // |show_passwords| true if the passwords should be shown in the UI. | 46 // |show_passwords| true if the passwords should be shown in the UI. |
47 virtual void SetPasswordList( | 47 virtual void SetPasswordList( |
48 const std::vector<scoped_ptr<autofill::PasswordForm>>& password_list) = 0; | 48 const std::vector<std::unique_ptr<autofill::PasswordForm>>& |
| 49 password_list) = 0; |
49 | 50 |
50 // Updates the list of password exceptions in the UI. | 51 // Updates the list of password exceptions in the UI. |
51 // |password_exception_list| The list of saved password exceptions. | 52 // |password_exception_list| The list of saved password exceptions. |
52 virtual void SetPasswordExceptionList( | 53 virtual void SetPasswordExceptionList( |
53 const std::vector<scoped_ptr<autofill::PasswordForm>>& | 54 const std::vector<std::unique_ptr<autofill::PasswordForm>>& |
54 password_exception_list) = 0; | 55 password_exception_list) = 0; |
55 #if !defined(OS_ANDROID) | 56 #if !defined(OS_ANDROID) |
56 // Returns the top level NativeWindow for the view. | 57 // Returns the top level NativeWindow for the view. |
57 virtual gfx::NativeWindow GetNativeWindow() const = 0; | 58 virtual gfx::NativeWindow GetNativeWindow() const = 0; |
58 #endif | 59 #endif |
59 }; | 60 }; |
60 | 61 |
61 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ | 62 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ |
OLD | NEW |