• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #ifndef URL_URL_FEATURES_H_
6 #define URL_URL_FEATURES_H_
7 
8 #include "base/component_export.h"
9 #include "base/feature_list.h"
10 
11 namespace url {
12 
13 COMPONENT_EXPORT(URL) BASE_DECLARE_FEATURE(kUseIDNA2008NonTransitional);
14 
15 // Returns true if Chrome is using IDNA 2008 in Non-Transitional mode.
16 COMPONENT_EXPORT(URL) bool IsUsingIDNA2008NonTransitional();
17 
18 // Returns true if Chrome is recording IDNA 2008 related metrics.
19 COMPONENT_EXPORT(URL) bool IsRecordingIDNA2008Metrics();
20 
21 // Returns true if Chrome is enforcing the 4 part check for IPv4 embedded IPv6
22 // addresses.
23 COMPONENT_EXPORT(URL)
24 BASE_DECLARE_FEATURE(kStrictIPv4EmbeddedIPv6AddressParsing);
25 
26 // When enabled, allows resolving of a bare fragment containing a colon against
27 // a non-hierarchical URL. (For example '#foo:bar' against 'about:blank'.)
28 COMPONENT_EXPORT(URL)
29 BASE_DECLARE_FEATURE(kResolveBareFragmentWithColonOnNonHierarchical);
30 
31 }  // namespace url
32 
33 #endif  // URL_URL_FEATURES_H_
34