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

Unified Diff: components/password_manager/core/browser/fake_form_fetcher.h

Issue 2878463003: Introduce SuppressedHTTPSFormFetcher. (Closed)
Patch Set: Polish. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: components/password_manager/core/browser/fake_form_fetcher.h
diff --git a/components/password_manager/core/browser/fake_form_fetcher.h b/components/password_manager/core/browser/fake_form_fetcher.h
index 891291d193892d35861a367b8a1903f1c0f1d12d..defdc60c945d3a6e39922d5949cd76b8f1df3d3a 100644
--- a/components/password_manager/core/browser/fake_form_fetcher.h
+++ b/components/password_manager/core/browser/fake_form_fetcher.h
@@ -56,6 +56,21 @@ class FakeFormFetcher : public FormFetcher {
federated_ = federated;
}
+ const std::vector<const autofill::PasswordForm*>& GetSuppressedHTTPSForms()
+ const override;
+
+ // The pointees in |suppressed_forms| must outlive the fetcher.
+ void set_suppressed_https_forms(
+ const std::vector<const autofill::PasswordForm*>& suppressed_forms) {
+ suppressed_https_forms_ = suppressed_forms;
+ }
+
+ bool DidCompleteQueryingSuppressedHTTPSForms() const override;
+
+ void set_did_complete_querying_suppressed_https_forms(bool value) {
+ did_complete_querying_suppressed_https_forms_ = value;
+ }
+
void SetNonFederated(
const std::vector<const autofill::PasswordForm*>& non_federated,
size_t filtered_count);
@@ -71,6 +86,8 @@ class FakeFormFetcher : public FormFetcher {
State state_ = State::NOT_WAITING;
std::vector<InteractionsStats> stats_;
std::vector<const autofill::PasswordForm*> federated_;
+ std::vector<const autofill::PasswordForm*> suppressed_https_forms_;
+ bool did_complete_querying_suppressed_https_forms_ = false;
DISALLOW_COPY_AND_ASSIGN(FakeFormFetcher);
};
« no previous file with comments | « components/password_manager/core/browser/BUILD.gn ('k') | components/password_manager/core/browser/fake_form_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698