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

Unified Diff: content/public/renderer/password_form_conversion_utils.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/renderer/document_state.cc ('k') | content/renderer/password_form_conversion_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/password_form_conversion_utils.h
diff --git a/content/public/renderer/password_form_conversion_utils.h b/content/public/renderer/password_form_conversion_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..986963c61a84a72f29681ce1f1ae6df7776e0709
--- /dev/null
+++ b/content/public/renderer/password_form_conversion_utils.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2011 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 CONTENT_PUBLIC_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_
+#define CONTENT_PUBLIC_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "content/common/content_export.h"
+
+namespace WebKit {
+class WebFormElement;
+}
+
+namespace content {
+
+struct PasswordForm;
+
+// Create a PasswordForm from DOM form. Webkit doesn't allow storing
+// custom metadata to DOM nodes, so we have to do this every time an event
+// happens with a given form and compare against previously Create'd forms
+// to identify..which sucks.
+CONTENT_EXPORT scoped_ptr<PasswordForm> CreatePasswordForm(
+ const WebKit::WebFormElement& form);
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_RENDERER_PASSWORD_FORM_CONVERSION_UTILS_H__
« no previous file with comments | « content/public/renderer/document_state.cc ('k') | content/renderer/password_form_conversion_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698