| // Copyright 2016 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef COMPONENTS_SUPERVISED_USER_CORE_COMMON_FEATURES_H_ |
| #define COMPONENTS_SUPERVISED_USER_CORE_COMMON_FEATURES_H_ |
| |
| #include "base/feature_list.h" |
| #include "base/metrics/field_trial_params.h" |
| #include "build/android_buildflags.h" |
| #include "build/build_config.h" |
| #include "extensions/buildflags/buildflags.h" |
| |
| namespace supervised_user { |
| |
| BASE_DECLARE_FEATURE(kLocalWebApprovals); |
| |
| // Whether supervised user can request local web approval from a blocked |
| // subframe. |
| BASE_DECLARE_FEATURE(kAllowSubframeLocalWebApprovals); |
| |
| #if BUILDFLAG(IS_IOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || \ |
| BUILDFLAG(IS_WIN) |
| extern const base::FeatureParam<int> kLocalWebApprovalBottomSheetLoadTimeoutMs; |
| #endif // BUILDFLAG(IS_IOS) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX) || |
| // BUILDFLAG(IS_WIN) |
| |
| #if BUILDFLAG(IS_ANDROID) |
| // Enables the supervised user verification interstitial and best-effort URL |
| // classification on Android when in pending auth state. |
| BASE_DECLARE_FEATURE(kSupervisedUserVerificationPageOnAndroid); |
| #endif |
| |
| #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_WIN) |
| // Uses supervised user strings on the signout dialog. |
| BASE_DECLARE_FEATURE(kEnableSupervisedUserVersionSignOutDialog); |
| #endif |
| |
| // Returns whether local parent approvals on Family Link user's device are |
| // enabled. |
| bool IsLocalWebApprovalsEnabled(); |
| |
| // Returns whether local parent approvals are enabled for subframe navigation. |
| bool IsLocalWebApprovalsEnabledForSubframes(); |
| |
| } // namespace supervised_user |
| |
| #endif // COMPONENTS_SUPERVISED_USER_CORE_COMMON_FEATURES_H_ |