Chromium Code Reviews| Index: chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h |
| diff --git a/chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h b/chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h |
| index df18ead3a568151a1cfd4c5bfa6e364d60e0e7d7..65ae318b322303406bf3168f3a0d7ac7f9c9f843 100644 |
| --- a/chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h |
| +++ b/chrome/browser/extensions/api/passwords_private/passwords_private_delegate.h |
| @@ -38,30 +38,8 @@ class PasswordsPrivateDelegate : public KeyedService { |
| public: |
| ~PasswordsPrivateDelegate() override {} |
| - // An interface used to notify clients (observers) of this object that |
| - // saved passwords, password exceptions, and plaintext passwords are ready to |
| - // be consumed by the UI. Register an observer via |
| - // PasswordsPrivateDelegate::AddObserver(). |
| - class Observer { |
| - public: |
| - virtual void OnSavedPasswordsListChanged( |
| - const std::vector<api::passwords_private::PasswordUiEntry>& entries) {} |
| - virtual void OnPasswordExceptionsListChanged( |
| - const std::vector<std::string>& exceptions) {} |
| - virtual void OnPlaintextPasswordFetched( |
| - const std::string& origin_url, |
| - const std::string& username, |
| - const std::string& plaintext_password) {} |
| - |
| - protected: |
| - virtual ~Observer() {} |
| - }; |
| - |
| - // Adds |observer| to be notified when password data changes. |
| - virtual void AddObserver(Observer* observer) = 0; |
| - |
| - // Removes |observer| from the observer list. |
| - virtual void RemoveObserver(Observer* observer) = 0; |
| + virtual void SendSavedPasswordsList() = 0; |
| + virtual void SendPasswordExceptionsList() = 0; |
|
stevenjb
2016/04/06 00:17:08
These should be commented here.
hcarmona
2016/04/06 01:51:23
Done.
|
| // Removes the saved password entry corresponding to |origin_url| and |
| // |username|. |