| 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 <memory> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 class PasswordUIView { | 26 class PasswordUIView { |
| 27 public: | 27 public: |
| 28 virtual ~PasswordUIView() {} | 28 virtual ~PasswordUIView() {} |
| 29 | 29 |
| 30 // Returns the profile associated with the currently active profile. | 30 // Returns the profile associated with the currently active profile. |
| 31 virtual Profile* GetProfile() = 0; | 31 virtual Profile* GetProfile() = 0; |
| 32 | 32 |
| 33 // Reveals the password for the saved password entry. | 33 // Reveals the password for the saved password entry. |
| 34 // |index| the index of the saved password entry. | 34 // |index| the index of the saved password entry. |
| 35 // |origin_url| the URL of the saved password entry; obtained via | 35 // |origin_url| the URL of the saved password entry; obtained via |
| 36 // GetHumanReadableOrigin(). | 36 // CreateUrlCollectionFromForm().origin. |
| 37 // |username| the username of the saved password entry. | 37 // |username| the username of the saved password entry. |
| 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<std::unique_ptr<autofill::PasswordForm>>& | 48 const std::vector<std::unique_ptr<autofill::PasswordForm>>& |
| 49 password_list) = 0; | 49 password_list) = 0; |
| 50 | 50 |
| 51 // Updates the list of password exceptions in the UI. | 51 // Updates the list of password exceptions in the UI. |
| 52 // |password_exception_list| The list of saved password exceptions. | 52 // |password_exception_list| The list of saved password exceptions. |
| 53 virtual void SetPasswordExceptionList( | 53 virtual void SetPasswordExceptionList( |
| 54 const std::vector<std::unique_ptr<autofill::PasswordForm>>& | 54 const std::vector<std::unique_ptr<autofill::PasswordForm>>& |
| 55 password_exception_list) = 0; | 55 password_exception_list) = 0; |
| 56 #if !defined(OS_ANDROID) | 56 #if !defined(OS_ANDROID) |
| 57 // Returns the top level NativeWindow for the view. | 57 // Returns the top level NativeWindow for the view. |
| 58 virtual gfx::NativeWindow GetNativeWindow() const = 0; | 58 virtual gfx::NativeWindow GetNativeWindow() const = 0; |
| 59 #endif | 59 #endif |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ | 62 #endif // CHROME_BROWSER_UI_PASSWORDS_PASSWORD_UI_VIEW_H_ |
| OLD | NEW |