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

Unified Diff: content/public/renderer/password_form_dom_manager.h

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Mostly cosmetic fixup Created 8 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: content/public/renderer/password_form_dom_manager.h
diff --git a/content/public/renderer/password_form_dom_manager.h b/content/public/renderer/password_form_dom_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..36135198618ec84e7b0e947662f546ce0fed0e78
--- /dev/null
+++ b/content/public/renderer/password_form_dom_manager.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
jam 2012/10/02 16:18:14 looks like svn history is lost?
blundell 2012/10/03 15:06:07 Fixed. Note that the history of password_form_dom_
+// 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_DOM_MANAGER_H_
+#define CONTENT_PUBLIC_RENDERER_PASSWORD_FORM_DOM_MANAGER_H_
+
+#include <map>
+
+#include "base/memory/scoped_ptr.h"
+#include "content/common/content_export.h"
+#include "content/public/common/password_form.h"
+#include "content/public/common/password_form_fill_data.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebPasswordFormData.h"
jam 2012/10/02 16:18:14 please forward declare as much as possible
blundell 2012/10/03 15:06:07 Done.
+
+namespace content {
+
+class PasswordFormDomManager {
+ public:
+ // 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 static scoped_ptr<PasswordForm> CreatePasswordForm(
+ const WebKit::WebFormElement& form);
jam 2012/10/02 16:18:14 the content api, like the webkit api, doesn't use
blundell 2012/10/03 15:06:07 Done. Also gave the file what seems like a more ap
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(PasswordFormDomManager);
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_RENDERER_PASSWORD_FORM_DOM_MANAGER_H__

Powered by Google App Engine
This is Rietveld 408576698