mirror of
https://github.com/morgan9e/helium
synced 2026-04-14 00:14:20 +09:00
referrer_sanitizer: export sanitize_referrer function
It was not previously exported, which breaks component builds.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user