Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Side by Side Diff: components/password_manager/core/browser/form_fetcher_impl.h

Issue 2760653002: Add FormFetcher::RemoveConsumer (Closed)
Patch Set: Rebased Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/password_manager/core/browser/form_fetcher.h ('k') | components/password_manager/core/browser/form_fetcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698