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

Unified Diff: Source/platform/credentialmanager/PlatformPasswordCredential.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
Index: Source/platform/credentialmanager/PlatformPasswordCredential.h
diff --git a/Source/platform/credentialmanager/PlatformPasswordCredential.h b/Source/platform/credentialmanager/PlatformPasswordCredential.h
new file mode 100644
index 0000000000000000000000000000000000000000..2bab8e960f974037de3bc0134e357e2b8fc6b08f
--- /dev/null
+++ b/Source/platform/credentialmanager/PlatformPasswordCredential.h
@@ -0,0 +1,32 @@
+// Copyright 2014 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 PlatformPasswordCredential_h
+#define PlatformPasswordCredential_h
+
+#include "platform/credentialmanager/PlatformCredential.h"
+#include "platform/heap/Handle.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+class PLATFORM_EXPORT PlatformPasswordCredential final : public PlatformCredential {
+ WTF_MAKE_NONCOPYABLE(PlatformPasswordCredential);
+public:
+ static PlatformPasswordCredential* create(const String& id, const String& password, const String& name, const KURL& avatarURL);
+ virtual ~PlatformPasswordCredential();
+
+ const String& password() const { return m_password; }
+
+ virtual bool isPassword() override { return true; }
+
+private:
+ PlatformPasswordCredential(const String& id, const String& password, const String& name, const KURL& avatarURL);
+
+ String m_password;
+};
+
+} // namespace blink
+
+#endif // PlatformPasswordCredential_h

Powered by Google App Engine
This is Rietveld 408576698