#include "components/enterprise/idle/action_type.h"
#include <cstring>
#include <regex>
#include <string>
#include <utility>
#include "base/containers/span.h"
#include "base/functional/bind.h"
#include "base/json/values_util.h"
#include "base/ranges/algorithm.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "base/values.h"
#include "components/enterprise/idle/idle_pref_names.h"
namespace enterprise_idle {
namespace {
#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_IOS)
const char kCloseBrowsersActionName[] = …;
const char kShowProfilePickerActionName[] = …;
const char kClearDownloadHistoryActionName[] = …;
const char kClearHostedAppDataActionName[] = …;
#endif
const char kClearBrowsingHistoryActionName[] = …;
const char kClearCookiesAndOtherSiteDataActionName[] = …;
const char kClearCachedImagesAndFilesActionName[] = …;
const char kClearPasswordSigninActionName[] = …;
const char kClearAutofillActionName[] = …;
#if BUILDFLAG(IS_IOS)
const char kSignOut[] = "sign_out";
const char kCloseTabs[] = "close_tabs";
#else
const char kClearSiteSettingsActionName[] = …;
const char kReloadPagesActionName[] = …;
#endif
}
std::optional<ActionType> NameToActionType(const std::string& name) { … }
std::string GetActionBrowsingDataTypeName(const std::string& action) { … }
std::vector<ActionType> GetActionTypesFromPrefs(PrefService* prefs) { … }
}