blob: 02c66a9e8e6b91e0fb80c25a43e5c10be092d42e [file] [log] [blame]
// Copyright 2024 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_USER_ANNOTATIONS_USER_ANNOTATIONS_FEATURES_H_
#define COMPONENTS_USER_ANNOTATIONS_USER_ANNOTATIONS_FEATURES_H_
#include <string>
#include <vector>
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
namespace user_annotations {
BASE_DECLARE_FEATURE(kUserAnnotations);
// Whether the user annotations feature is enabled.
bool IsUserAnnotationsEnabled();
// Returns the set of hosts that are allowed for forms annotations.
std::vector<std::string> GetAllowedHostsForFormsAnnotations();
// Whether the user annotations should be persisted in database.
bool ShouldPersistUserAnnotations();
bool ShouldExtractAXTreeForFormsAnnotations();
// Returns the completion timeout for the entirety of forms submission stages.
base::TimeDelta GetFormSubmissionCompletionTimeout();
} // namespace user_annotations
#endif // COMPONENTS_USER_ANNOTATIONS_USER_ANNOTATIONS_FEATURES_H_