| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DELEGA
TE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DELEGA
TE_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DELEGA
TE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DELEGA
TE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 // Gets the password exceptions list. | 46 // Gets the password exceptions list. |
| 47 using ExceptionEntries = std::vector<api::passwords_private::ExceptionEntry>; | 47 using ExceptionEntries = std::vector<api::passwords_private::ExceptionEntry>; |
| 48 using ExceptionEntriesCallback = | 48 using ExceptionEntriesCallback = |
| 49 base::Callback<void(const ExceptionEntries&)>; | 49 base::Callback<void(const ExceptionEntries&)>; |
| 50 virtual void GetPasswordExceptionsList( | 50 virtual void GetPasswordExceptionsList( |
| 51 const ExceptionEntriesCallback& callback) = 0; | 51 const ExceptionEntriesCallback& callback) = 0; |
| 52 | 52 |
| 53 // Removes the saved password entry corresponding to |origin_url| and | 53 // Removes the saved password entry corresponding to |origin_url| and |
| 54 // |username|. | 54 // |username|. |
| 55 // |origin_url| The human-readable origin for the URL where the password is | 55 // |origin_url| The origin for the URL where the password is used; should be |
| 56 // used/ should be obtained using GetHumanReadableOrigin(). | 56 // obtained using CreateUrlCollectionFromForm().origin. |
| 57 // |username| The username used in conjunction with the saved password. | 57 // |username| The username used in conjunction with the saved password. |
| 58 virtual void RemoveSavedPassword( | 58 virtual void RemoveSavedPassword( |
| 59 const std::string& origin_url, const std::string& username) = 0; | 59 const std::string& origin_url, const std::string& username) = 0; |
| 60 | 60 |
| 61 // Removes the saved password exception entry corresponding to | 61 // Removes the saved password exception entry corresponding to |
| 62 // |exception_url|. | 62 // |exception_url|. |
| 63 // |exception_url| The URL corresponding to the exception to remove; should | 63 // |exception_url| The URL corresponding to the exception to remove; should |
| 64 // be obtained using GetHumanReadableOrigin(). | 64 // be obtained using CreateUrlCollectionFromForm().origin. |
| 65 virtual void RemovePasswordException(const std::string& exception_url) = 0; | 65 virtual void RemovePasswordException(const std::string& exception_url) = 0; |
| 66 | 66 |
| 67 // Requests the plain text password for entry corresponding to |origin_url| | 67 // Requests the plain text password for entry corresponding to |origin_url| |
| 68 // and |username|. | 68 // and |username|. |
| 69 // |origin_url| The human-readable origin for the URL where the password is | 69 // |origin_url| The origin for the URL where the password is used; should be |
| 70 // used; should be obtained using GetHumanReadableOrigin(). | 70 // obtained using CreateUrlCollectionFromForm().origin. |
| 71 // |username| The username used in conjunction with the saved password. | 71 // |username| The username used in conjunction with the saved password. |
| 72 // |native_window| The Chrome host window; will be used to show an OS-level | 72 // |native_window| The Chrome host window; will be used to show an OS-level |
| 73 // authentication dialog if necessary. | 73 // authentication dialog if necessary. |
| 74 virtual void RequestShowPassword(const std::string& origin_url, | 74 virtual void RequestShowPassword(const std::string& origin_url, |
| 75 const std::string& username, | 75 const std::string& username, |
| 76 content::WebContents* web_contents) = 0; | 76 content::WebContents* web_contents) = 0; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace extensions | 79 } // namespace extensions |
| 80 | 80 |
| 81 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DEL
EGATE_H_ | 81 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DEL
EGATE_H_ |
| OLD | NEW |