| // Copyright 2025 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef CHROME_BROWSER_WEB_APPLICATIONS_LINK_CAPTURING_FEATURES_H_ |
| #define CHROME_BROWSER_WEB_APPLICATIONS_LINK_CAPTURING_FEATURES_H_ |
| #include "base/feature_list.h" |
| #include "build/build_config.h" |
| namespace apps::features { |
| // Returns true if the updated UX for link capturing needs to be shown. Only set |
| // to true on desktop platforms if kPwaNavigationCapturing is enabled, and |
| bool ShouldShowLinkCapturingUX(); |
| // Returns true if the `kPwaNavigationCapturing` flag is enabled with the |
| // reimplementation parameters set. |
| // NOTE: the reimplementation can also be enabled for particular applications |
| // even if this flag is off. Hence only the `true` return value can be fully |
| // trusted, but if `false` is returned extra considerations are required. See |
| // `IsNavigationCapturingReimplExperimentEnabled()` at |
| // //c/b/ui/web_applications/web_app_launch_utils.cc. |
| bool IsNavigationCapturingReimplEnabled(); |
| } // namespace apps::features |
| #endif // CHROME_BROWSER_WEB_APPLICATIONS_LINK_CAPTURING_FEATURES_H_ |