mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 15:43:20 +00:00
22 lines
615 B
C++
22 lines
615 B
C++
![]() |
/*
|
||
|
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
||
|
*
|
||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||
|
*/
|
||
|
|
||
|
#include <LibWeb/GPC/GlobalPrivacyControl.h>
|
||
|
#include <LibWeb/Loader/ResourceLoader.h>
|
||
|
|
||
|
namespace Web::GlobalPrivacyControl {
|
||
|
|
||
|
GlobalPrivacyControlMixin::~GlobalPrivacyControlMixin() = default;
|
||
|
|
||
|
// https://w3c.github.io/gpc/#dom-globalprivacycontrol-globalprivacycontrol
|
||
|
bool GlobalPrivacyControlMixin::global_privacy_control() const
|
||
|
{
|
||
|
// The value is false if no Sec-GPC header field would be sent; otherwise, the value is true.
|
||
|
return ResourceLoader::the().enable_global_privacy_control();
|
||
|
}
|
||
|
|
||
|
}
|