OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FORM_FETCHER_IMPL_H_ | 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FORM_FETCHER_IMPL_H_ |
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FORM_FETCHER_IMPL_H_ | 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FORM_FETCHER_IMPL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 17 matching lines...) Expand all Loading... |
28 // |form_digest| describes what credentials need to be retrieved and | 28 // |form_digest| describes what credentials need to be retrieved and |
29 // |client| serves the PasswordStore, the logging information etc. | 29 // |client| serves the PasswordStore, the logging information etc. |
30 FormFetcherImpl(PasswordStore::FormDigest form_digest, | 30 FormFetcherImpl(PasswordStore::FormDigest form_digest, |
31 const PasswordManagerClient* client, | 31 const PasswordManagerClient* client, |
32 bool should_migrate_http_passwords); | 32 bool should_migrate_http_passwords); |
33 | 33 |
34 ~FormFetcherImpl() override; | 34 ~FormFetcherImpl() override; |
35 | 35 |
36 // FormFetcher: | 36 // FormFetcher: |
37 void AddConsumer(FormFetcher::Consumer* consumer) override; | 37 void AddConsumer(FormFetcher::Consumer* consumer) override; |
| 38 void RemoveConsumer(FormFetcher::Consumer* consumer) override; |
38 State GetState() const override; | 39 State GetState() const override; |
39 const std::vector<InteractionsStats>& GetInteractionsStats() const override; | 40 const std::vector<InteractionsStats>& GetInteractionsStats() const override; |
40 const std::vector<const autofill::PasswordForm*>& GetFederatedMatches() | 41 const std::vector<const autofill::PasswordForm*>& GetFederatedMatches() |
41 const override; | 42 const override; |
42 void Fetch() override; | 43 void Fetch() override; |
43 std::unique_ptr<FormFetcher> Clone() override; | 44 std::unique_ptr<FormFetcher> Clone() override; |
44 | 45 |
45 // PasswordStoreConsumer: | 46 // PasswordStoreConsumer: |
46 void OnGetPasswordStoreResults( | 47 void OnGetPasswordStoreResults( |
47 std::vector<std::unique_ptr<autofill::PasswordForm>> results) override; | 48 std::vector<std::unique_ptr<autofill::PasswordForm>> results) override; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 97 |
97 // Does the actual migration. | 98 // Does the actual migration. |
98 std::unique_ptr<HttpPasswordMigrator> http_migrator_; | 99 std::unique_ptr<HttpPasswordMigrator> http_migrator_; |
99 | 100 |
100 DISALLOW_COPY_AND_ASSIGN(FormFetcherImpl); | 101 DISALLOW_COPY_AND_ASSIGN(FormFetcherImpl); |
101 }; | 102 }; |
102 | 103 |
103 } // namespace password_manager | 104 } // namespace password_manager |
104 | 105 |
105 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FORM_FETCHER_IMPL_H_ | 106 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FORM_FETCHER_IMPL_H_ |
OLD | NEW |