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

Unified Diff: content/public/common/password_form.h

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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
« no previous file with comments | « content/public/common/frame_navigate_params.h ('k') | content/public/common/password_form.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/password_form.h
diff --git a/webkit/forms/password_form.h b/content/public/common/password_form.h
similarity index 92%
rename from webkit/forms/password_form.h
rename to content/public/common/password_form.h
index 045792e02e34c65a54ee20b2fb971d52bb32105e..2b0eb0e606137b565e25bcb48c3baed6d99f1228 100644
--- a/webkit/forms/password_form.h
+++ b/content/public/common/password_form.h
@@ -2,19 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_FORMS_PASSWORD_FORM_H__
-#define WEBKIT_FORMS_PASSWORD_FORM_H__
+#ifndef CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__
+#define CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__
#include <map>
#include <string>
#include "base/time.h"
+#include "content/common/content_export.h"
#include "googleurl/src/gurl.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/WebPasswordFormData.h"
-#include "webkit/forms/webkit_forms_export.h"
-namespace webkit {
-namespace forms {
+namespace content {
// The PasswordForm struct encapsulates information about a login form,
// which can be an HTML form or a dialog with username/password text fields.
@@ -38,7 +36,7 @@ namespace forms {
// 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 WEBKIT_FORMS_EXPORT PasswordForm {
+struct CONTENT_EXPORT 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.
@@ -148,14 +146,12 @@ struct WEBKIT_FORMS_EXPORT PasswordForm {
Type type;
PasswordForm();
- PasswordForm(const WebKit::WebPasswordFormData& web_password_form);
~PasswordForm();
};
// Map username to PasswordForm* for convenience. See password_form_manager.h.
typedef std::map<string16, PasswordForm*> PasswordFormMap;
-} // namespace forms
-} // namespace webkit
+} // namespace content
-#endif // WEBKIT_FORMS_PASSWORD_FORM_H__
+#endif // CONTENT_PUBLIC_COMMON_PASSWORD_FORM_H__
« no previous file with comments | « content/public/common/frame_navigate_params.h ('k') | content/public/common/password_form.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698