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

Side by Side Diff: components/password_manager/core/browser/fake_form_fetcher.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
« no previous file with comments | « no previous file | components/password_manager/core/browser/fake_form_fetcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_FAKE_FORM_FETCHER_H_ 5 #ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FAKE_FORM_FETCHER_H_
6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FAKE_FORM_FETCHER_H_ 6 #define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FAKE_FORM_FETCHER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 public: 26 public:
27 FakeFormFetcher(); 27 FakeFormFetcher();
28 28
29 ~FakeFormFetcher() override; 29 ~FakeFormFetcher() override;
30 30
31 // Registers consumers to be notified when results are set. Unlike the 31 // Registers consumers to be notified when results are set. Unlike the
32 // production version, assumes that results have not arrived yet, i.e., one 32 // production version, assumes that results have not arrived yet, i.e., one
33 // has to first call AddConsumer and then SetNonFederated. 33 // has to first call AddConsumer and then SetNonFederated.
34 void AddConsumer(Consumer* consumer) override; 34 void AddConsumer(Consumer* consumer) override;
35 35
36 void RemoveConsumer(Consumer* consumer) override;
37
36 // Returns State::WAITING if Fetch() was called after any Set* calls, and 38 // Returns State::WAITING if Fetch() was called after any Set* calls, and
37 // State::NOT_WAITING otherwise. 39 // State::NOT_WAITING otherwise.
38 State GetState() const override; 40 State GetState() const override;
39 41
40 // Statistics for recent password bubble usage. 42 // Statistics for recent password bubble usage.
41 const std::vector<InteractionsStats>& GetInteractionsStats() const override; 43 const std::vector<InteractionsStats>& GetInteractionsStats() const override;
42 44
43 void set_stats(const std::vector<InteractionsStats>& stats) { 45 void set_stats(const std::vector<InteractionsStats>& stats) {
44 state_ = State::NOT_WAITING; 46 state_ = State::NOT_WAITING;
45 stats_ = stats; 47 stats_ = stats;
(...skipping 23 matching lines...) Expand all
69 State state_ = State::NOT_WAITING; 71 State state_ = State::NOT_WAITING;
70 std::vector<InteractionsStats> stats_; 72 std::vector<InteractionsStats> stats_;
71 std::vector<const autofill::PasswordForm*> federated_; 73 std::vector<const autofill::PasswordForm*> federated_;
72 74
73 DISALLOW_COPY_AND_ASSIGN(FakeFormFetcher); 75 DISALLOW_COPY_AND_ASSIGN(FakeFormFetcher);
74 }; 76 };
75 77
76 } // namespace password_manager 78 } // namespace password_manager
77 79
78 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FAKE_FORM_FETCHER_H_ 80 #endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FAKE_FORM_FETCHER_H_
OLDNEW
« no previous file with comments | « no previous file | components/password_manager/core/browser/fake_form_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698