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

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

Issue 1260263002: Move ShouldFilterAutofillResult from ChromePasswordManagerClient to PasswordManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just rebased Created 5 years, 4 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/store_result_filter.h
diff --git a/components/password_manager/core/browser/store_result_filter.h b/components/password_manager/core/browser/store_result_filter.h
new file mode 100644
index 0000000000000000000000000000000000000000..5c7d26e1cffba5e05dd05c1ee7c81be54d624fc1
--- /dev/null
+++ b/components/password_manager/core/browser/store_result_filter.h
@@ -0,0 +1,28 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STORE_RESULT_FILTER_H_
+#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STORE_RESULT_FILTER_H_
+
+#include "components/autofill/core/common/password_form.h"
+
+namespace password_manager {
+
+// This interface is used by PasswordFormManager to filter results from the
+// PasswordStore.
+class StoreResultFilter {
+ public:
+ StoreResultFilter() {}
+ virtual ~StoreResultFilter() {}
+
+ // Should |form| be ignored for any password manager-related purposes?
+ virtual bool ShouldIgnore(const autofill::PasswordForm& form) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(StoreResultFilter);
+};
+
+} // namespace password_manager
+
+#endif // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_STORE_RESULT_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698