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

Unified Diff: public/platform/WebPasswordCredential.h

Issue 1162443006: Credential Management: Rename 'LocalCredential' to 'PasswordCredential' (1/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@add-type
Patch Set: Test. Created 5 years, 7 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 | « public/platform/WebLocalCredential.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebPasswordCredential.h
diff --git a/public/platform/WebPasswordCredential.h b/public/platform/WebPasswordCredential.h
new file mode 100644
index 0000000000000000000000000000000000000000..99cd840917c01c85ba2ae35871bdd240db2ea28c
--- /dev/null
+++ b/public/platform/WebPasswordCredential.h
@@ -0,0 +1,35 @@
+// Copyright 2015 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 WebPasswordCredential_h
+#define WebPasswordCredential_h
+
+#include "public/platform/WebCommon.h"
+#include "public/platform/WebCredential.h"
+#include "public/platform/WebString.h"
+#include "public/platform/WebURL.h"
+
+namespace blink {
+
+// TODO(mkwst): Throw this away once it's unused on the Chromium side: https://crbug.com/494880
+class WebPasswordCredential : public WebCredential {
+public:
+ BLINK_PLATFORM_EXPORT WebPasswordCredential(const WebString& id, const WebString& password, const WebString& name, const WebURL& avatarURL);
+
+ BLINK_PLATFORM_EXPORT void assign(const WebPasswordCredential&);
+
+ BLINK_PLATFORM_EXPORT WebString password() const;
+
+#if INSIDE_BLINK
+ BLINK_PLATFORM_EXPORT WebPasswordCredential(PlatformCredential*);
+ BLINK_PLATFORM_EXPORT WebPasswordCredential& operator=(PlatformCredential*);
+#endif
+};
+
+} // namespace blink
+
+#endif // WebPasswordCredential_h
+
+
+
« no previous file with comments | « public/platform/WebLocalCredential.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698