chromium/components/enterprise/idle/action_type.cc


// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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  // !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_IOS)
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  // BUILDFLAG(IS_IOS)
}  // namespace

std::optional<ActionType> NameToActionType(const std::string& name) {}

std::string GetActionBrowsingDataTypeName(const std::string& action) {}

std::vector<ActionType> GetActionTypesFromPrefs(PrefService* prefs) {}

}  // namespace enterprise_idle