OLD | NEW |
---|---|
(Empty) | |
1 // 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_
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_PUBLIC_RENDERER_PASSWORD_FORM_DOM_MANAGER_H_ | |
6 #define CONTENT_PUBLIC_RENDERER_PASSWORD_FORM_DOM_MANAGER_H_ | |
7 | |
8 #include <map> | |
9 | |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "content/common/content_export.h" | |
12 #include "content/public/common/password_form.h" | |
13 #include "content/public/common/password_form_fill_data.h" | |
14 #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.
| |
15 | |
16 namespace content { | |
17 | |
18 class PasswordFormDomManager { | |
19 public: | |
20 // Create a PasswordForm from DOM form. Webkit doesn't allow storing | |
21 // custom metadata to DOM nodes, so we have to do this every time an event | |
22 // happens with a given form and compare against previously Create'd forms | |
23 // to identify..which sucks. | |
24 CONTENT_EXPORT static scoped_ptr<PasswordForm> CreatePasswordForm( | |
25 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
| |
26 | |
27 private: | |
28 DISALLOW_IMPLICIT_CONSTRUCTORS(PasswordFormDomManager); | |
29 }; | |
30 | |
31 } // namespace content | |
32 | |
33 #endif // CONTENT_PUBLIC_RENDERER_PASSWORD_FORM_DOM_MANAGER_H__ | |
OLD | NEW |