| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 virtual void SendSavedPasswordsList() = 0; | 42 virtual void SendSavedPasswordsList() = 0; |
| 43 | 43 |
| 44 // Gets the saved passwords list. | 44 // Gets the saved passwords list. |
| 45 virtual const std::vector<api::passwords_private::PasswordUiEntry>* | 45 virtual const std::vector<api::passwords_private::PasswordUiEntry>* |
| 46 GetSavedPasswordsList() const = 0; | 46 GetSavedPasswordsList() const = 0; |
| 47 | 47 |
| 48 // Sends the password exceptions list to the event router. | 48 // Sends the password exceptions list to the event router. |
| 49 virtual void SendPasswordExceptionsList() = 0; | 49 virtual void SendPasswordExceptionsList() = 0; |
| 50 | 50 |
| 51 // Gets the password exceptions list. | 51 // Gets the password exceptions list. |
| 52 virtual const std::vector<std::string>* GetPasswordExceptionsList() const = 0; | 52 virtual const std::vector<api::passwords_private::ExceptionPair>* |
| 53 GetPasswordExceptionsList() const = 0; |
| 53 | 54 |
| 54 // Removes the saved password entry corresponding to |origin_url| and | 55 // Removes the saved password entry corresponding to |origin_url| and |
| 55 // |username|. | 56 // |username|. |
| 56 // |origin_url| The human-readable origin for the URL where the password is | 57 // |origin_url| The human-readable origin for the URL where the password is |
| 57 // used/ should be obtained using GetHumanReadableOrigin(). | 58 // used/ should be obtained using GetHumanReadableOrigin(). |
| 58 // |username| The username used in conjunction with the saved password. | 59 // |username| The username used in conjunction with the saved password. |
| 59 virtual void RemoveSavedPassword( | 60 virtual void RemoveSavedPassword( |
| 60 const std::string& origin_url, const std::string& username) = 0; | 61 const std::string& origin_url, const std::string& username) = 0; |
| 61 | 62 |
| 62 // Removes the saved password exception entry corresponding to | 63 // Removes the saved password exception entry corresponding to |
| (...skipping 10 matching lines...) Expand all Loading... |
| 73 // |native_window| The Chrome host window; will be used to show an OS-level | 74 // |native_window| The Chrome host window; will be used to show an OS-level |
| 74 // authentication dialog if necessary. | 75 // authentication dialog if necessary. |
| 75 virtual void RequestShowPassword(const std::string& origin_url, | 76 virtual void RequestShowPassword(const std::string& origin_url, |
| 76 const std::string& username, | 77 const std::string& username, |
| 77 content::WebContents* web_contents) = 0; | 78 content::WebContents* web_contents) = 0; |
| 78 }; | 79 }; |
| 79 | 80 |
| 80 } // namespace extensions | 81 } // namespace extensions |
| 81 | 82 |
| 82 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DEL
EGATE_H_ | 83 #endif // CHROME_BROWSER_EXTENSIONS_API_PASSWORDS_PRIVATE_PASSWORDS_PRIVATE_DEL
EGATE_H_ |
| OLD | NEW |