1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PlatformPasswordCredential_h
6 #define PlatformPasswordCredential_h
8 #include "platform/credentialmanager/PlatformCredential.h"
9 #include "platform/heap/Handle.h"
10 #include "wtf/text/WTFString.h"
14 class PLATFORM_EXPORT PlatformPasswordCredential final
: public PlatformCredential
{
15 WTF_MAKE_NONCOPYABLE(PlatformPasswordCredential
);
17 static PlatformPasswordCredential
* create(const String
& id
, const String
& password
, const String
& name
, const KURL
& iconURL
);
18 ~PlatformPasswordCredential() override
;
20 const String
& password() const { return m_password
; }
22 bool isPassword() override
{ return true; }
25 PlatformPasswordCredential(const String
& id
, const String
& password
, const String
& name
, const KURL
& iconURL
);
32 #endif // PlatformPasswordCredential_h