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

Unified Diff: components/autofill/core/common/password_form.h

Issue 23742004: Move PasswordForm from //content to //autofill. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_password_form_conversion_utils
Patch Set: Rebase Created 7 years, 3 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/autofill/core/common/password_form.h
diff --git a/content/public/common/password_form.h b/components/autofill/core/common/password_form.h
similarity index 96%
rename from content/public/common/password_form.h
rename to components/autofill/core/common/password_form.h
index fff2e60d025e5c8fa63e6f23d97ffe53bedbb9bb..2a0b4d4776bdeee7df89418393b7be0f7fc1cc45 100644
--- a/content/public/common/password_form.h
+++ b/components/autofill/core/common/password_form.h
@@ -2,18 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__
-#define CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__
+#ifndef COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__
+#define COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__
#include <map>
#include <string>
#include <vector>
#include "base/time/time.h"
-#include "content/common/content_export.h"
#include "url/gurl.h"
-namespace content {
+namespace autofill {
// The PasswordForm struct encapsulates information about a login form,
// which can be an HTML form or a dialog with username/password text fields.
@@ -37,7 +36,7 @@ namespace content {
// describe which fields are not strictly required when adding a saved password
// entry to the database and how they can affect the matching process.
-struct CONTENT_EXPORT PasswordForm {
+struct PasswordForm {
// Enum to differentiate between HTML form based authentication, and dialogs
// using basic or digest schemes. Default is SCHEME_HTML. Only PasswordForms
// of the same Scheme will be matched/autofilled against each other.
@@ -191,6 +190,6 @@ struct CONTENT_EXPORT PasswordForm {
// Map username to PasswordForm* for convenience. See password_form_manager.h.
typedef std::map<string16, PasswordForm*> PasswordFormMap;
-} // namespace content
+} // namespace autofill
-#endif // CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__
+#endif // COMPONENTS_AUTOFILL_CORE_COMMON_PASSWORD_FORM_H__
« no previous file with comments | « components/autofill/core/common/autofill_param_traits_macros.h ('k') | components/autofill/core/common/password_form.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698