referrer_sanitizer: export sanitize_referrer function

It was not previously exported, which breaks component builds.
This commit is contained in:
jj
2025-02-22 18:24:31 +00:00
parent 94fa12bcd0
commit 1cf909c14d

View File

@@ -193,7 +193,7 @@
+} // namespace referrer_sanitizer
--- /dev/null
+++ b/services/network/public/cpp/referrer_sanitizer.h
@@ -0,0 +1,30 @@
@@ -0,0 +1,32 @@
+// Copyright 2023 The ungoogled-chromium Authors
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
@@ -209,12 +209,14 @@
+
+namespace referrer_sanitizer {
+
+COMPONENT_EXPORT(NETWORK_CPP)
+std::pair<GURL, net::ReferrerPolicy> sanitize_referrer(
+ const GURL& origin,
+ const GURL& destination,
+ const net::ReferrerPolicy& referrer_policy,
+ bool enable_referrers);
+
+COMPONENT_EXPORT(NETWORK_CPP)
+std::pair<GURL, network::mojom::ReferrerPolicy> sanitize_referrer(
+ const GURL& origin,
+ const GURL& destination,