mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 18:30:27 +00:00
Previously the attributes for the mixin CredentialUserData was added to the Credential implementation. Now they are moved to the CredentialUserData implementation, and any *Credential implementations which includes this mixin in IDL can now instead inherit from the CredentialUserData class.
32 lines
601 B
C++
32 lines
601 B
C++
/*
|
|
* Copyright (c) 2025, Kenneth Myhra <kennethmyhra@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/String.h>
|
|
|
|
namespace Web::CredentialManagement {
|
|
|
|
class CredentialUserData {
|
|
public:
|
|
virtual ~CredentialUserData() = default;
|
|
|
|
String const& name() { return m_name; }
|
|
String const& icon_url() { return m_icon_url; }
|
|
|
|
protected:
|
|
CredentialUserData() = default;
|
|
CredentialUserData(String name, String icon_url)
|
|
: m_name(move(name))
|
|
, m_icon_url(move(icon_url))
|
|
{
|
|
}
|
|
|
|
String m_name;
|
|
String m_icon_url;
|
|
};
|
|
|
|
}
|