1 // Copyright 2022 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef URL_URL_FEATURES_H_
6 #define URL_URL_FEATURES_H_
8 #include "base/component_export.h"
9 #include "base/feature_list.h"
13 COMPONENT_EXPORT(URL) BASE_DECLARE_FEATURE(kUseIDNA2008NonTransitional);
15 // Returns true if Chrome is using IDNA 2008 in Non-Transitional mode.
16 COMPONENT_EXPORT(URL) bool IsUsingIDNA2008NonTransitional();
18 // Returns true if Chrome is recording IDNA 2008 related metrics.
19 COMPONENT_EXPORT(URL) bool IsRecordingIDNA2008Metrics();
21 // Returns true if IsUsingStandardCompliantHostCharacters feature is enabled.
22 // See url::kStandardCompliantHostCharacters for details.
23 COMPONENT_EXPORT(URL) bool IsUsingStandardCompliantHostCharacters();
25 // When enabled, allows resolving of a bare fragment containing a colon against
26 // a non-hierarchical URL. (For example '#foo:bar' against 'about:blank'.)
28 BASE_DECLARE_FEATURE(kResolveBareFragmentWithColonOnNonHierarchical);
30 // When enabled, Chrome uses URL Standard compliant mode to
31 // handle punctuation characters in URL host part.
32 // https://crbug.com/1416013 for details.
34 BASE_DECLARE_FEATURE(kStandardCompliantHostCharacters);
38 #endif // URL_URL_FEATURES_H_