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

Unified Diff: Source/platform/exported/WebPasswordCredential.cpp

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 | « Source/platform/exported/WebLocalCredential.cpp ('k') | public/platform/WebCredential.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/exported/WebPasswordCredential.cpp
diff --git a/Source/platform/exported/WebPasswordCredential.cpp b/Source/platform/exported/WebPasswordCredential.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..b78868053d031804c049aeabdd8be994ef7a7fff
--- /dev/null
+++ b/Source/platform/exported/WebPasswordCredential.cpp
@@ -0,0 +1,39 @@
+// 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.
+
+#include "config.h"
+#include "public/platform/WebPasswordCredential.h"
+
+#include "platform/credentialmanager/PlatformPasswordCredential.h"
+
+namespace blink {
+WebPasswordCredential::WebPasswordCredential(const WebString& id, const WebString& password, const WebString& name, const WebURL& avatarURL)
+ : WebCredential(PlatformPasswordCredential::create(id, password, name, avatarURL))
+{
+}
+
+void WebPasswordCredential::assign(const WebPasswordCredential& other)
+{
+ m_platformCredential = other.m_platformCredential;
+}
+
+WebString WebPasswordCredential::password() const
+{
+ return static_cast<PlatformPasswordCredential*>(m_platformCredential.get())->password();
+}
+
+WebPasswordCredential::WebPasswordCredential(PlatformCredential* credential)
+ : WebCredential(credential)
+{
+}
+
+WebPasswordCredential& WebPasswordCredential::operator=(PlatformCredential* credential)
+{
+ m_platformCredential = credential;
+ return *this;
+}
+
+} // namespace blink
+
+
« no previous file with comments | « Source/platform/exported/WebLocalCredential.cpp ('k') | public/platform/WebCredential.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698