features.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_LOOKALIKES_CORE_FEATURES_H_
  5. #define COMPONENTS_LOOKALIKES_CORE_FEATURES_H_
  6. #include "base/component_export.h"
  7. #include "base/feature_list.h"
  8. namespace lookalikes {
  9. namespace features {
  10. // This feature enables Digital Asset Link validations for lookalikes.
  11. COMPONENT_EXPORT(LOOKALIKES_FEATURES)
  12. extern const base::Feature kLookalikeDigitalAssetLinks;
  13. // Timeout before giving up on Digital Asset Link manifest fetches. The feature
  14. // fetches manifests from both the lookalike and the target URLs. If it fails to
  15. // fetch either manifest within this period, the validation is assumed to fail.
  16. COMPONENT_EXPORT(LOOKALIKES_FEATURES)
  17. extern const char kLookalikeDigitalAssetLinksTimeoutParameter[];
  18. // This feature enables warnings for Combo Squatting heuristic.
  19. COMPONENT_EXPORT(LOOKALIKES_FEATURES)
  20. extern const base::Feature kDetectComboSquattingLookalikes;
  21. } // namespace features
  22. } // namespace lookalikes
  23. #endif // COMPONENTS_LOOKALIKES_CORE_FEATURES_H_