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

Unified Diff: Source/modules/credentialmanager/PasswordCredential.h

Issue 1317043003: CREDENTIAL: Add 'PasswordCredential::toFormData()' (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@opaque-formdata
Patch Set: webexposed Created 5 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: Source/modules/credentialmanager/PasswordCredential.h
diff --git a/Source/modules/credentialmanager/PasswordCredential.h b/Source/modules/credentialmanager/PasswordCredential.h
index dded5dfc3a3a4add8821d35f8c27668e6a1c3520..13e2b346c434dbc83da6e14d24466f43af2ed9a4 100644
--- a/Source/modules/credentialmanager/PasswordCredential.h
+++ b/Source/modules/credentialmanager/PasswordCredential.h
@@ -14,6 +14,7 @@
namespace blink {
class DOMFormData;
+class FormDataOptions;
class WebPasswordCredential;
class PasswordCredential final : public Credential {
@@ -33,8 +34,7 @@ public:
static PasswordCredential* create(WebPasswordCredential*);
// PasswordCredential.idl
- const String& password() const;
- DOMFormData* formData() const { return m_formData; }
+ DOMFormData* toFormData(ScriptState*, const FormDataOptions&);
DECLARE_VIRTUAL_TRACE();
@@ -42,7 +42,7 @@ private:
PasswordCredential(WebPasswordCredential*);
PasswordCredential(const String& id, const String& password, const String& name, const KURL& icon);
- Member<DOMFormData> m_formData;
+ const String& password() const;
};
} // namespace blink
« no previous file with comments | « Source/modules/credentialmanager/FormDataOptions.idl ('k') | Source/modules/credentialmanager/PasswordCredential.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698