#ifndef CHROME_BROWSER_UI_CHROME_PAGES_H_
#define CHROME_BROWSER_UI_CHROME_PAGES_H_
#include <stdint.h>
#include <string>
#include <string_view>
#include "base/values.h"
#include "build/branding_buildflags.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/feedback/public/feedback_source.h"
#include "components/content_settings/core/common/content_settings_types.h"
#include "components/signin/public/base/signin_buildflags.h"
#include "url/gurl.h"
#if !BUILDFLAG(IS_ANDROID)
#include "chrome/browser/signin/signin_promo.h"
#endif
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ui/webui/ash/settings/app_management/app_management_uma.h"
#endif
namespace apps {
enum class LaunchSource;
}
namespace safe_browsing {
enum class SafeBrowsingSettingReferralMethod;
}
namespace signin {
enum class ConsentLevel;
}
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
namespace web_app {
enum class AppSettingsPageEntryPoint;
}
#endif
class Browser;
class Profile;
namespace chrome {
enum HelpSource { … };
void ShowBookmarkManager(Browser* browser);
void ShowBookmarkManagerForNode(Browser* browser, int64_t node_id);
void ShowHistory(Browser* browser, const std::string& host_name);
void ShowHistory(Browser* browser);
void ShowDownloads(Browser* browser);
void ShowExtensions(Browser* browser,
const std::string& extension_to_highlight = std::string());
void ShowHelp(Browser* browser, HelpSource source);
void ShowHelpForProfile(Profile* profile, HelpSource source);
#if BUILDFLAG(GOOGLE_CHROME_BRANDING)
void ShowChromeTips(Browser* browser);
void ShowChromeWhatsNew(Browser* browser);
#endif
void LaunchReleaseNotes(Profile* profile, apps::LaunchSource source);
void ShowBetaForum(Browser* browser);
void ShowSlow(Browser* browser);
GURL GetSettingsUrl(const std::string& sub_page);
bool IsTrustedPopupWindowWithScheme(const Browser* browser,
const std::string& scheme);
void ShowSettings(Browser* browser);
void ShowSettingsSubPage(Browser* browser, const std::string& sub_page);
void ShowSettingsSubPageForProfile(Profile* profile,
const std::string& sub_page);
void ShowContentSettingsExceptions(Browser* browser,
ContentSettingsType content_settings_type);
void ShowContentSettingsExceptionsForProfile(
Profile* profile,
ContentSettingsType content_settings_type);
void ShowSiteSettings(Profile* profile, const GURL& url);
void ShowSiteSettings(Browser* browser, const GURL& url);
void ShowSiteSettingsFileSystem(Profile* profile, const GURL& url);
void ShowSiteSettingsFileSystem(Browser* browser, const GURL& url);
void ShowContentSettings(Browser* browser,
ContentSettingsType content_settings_type);
void ShowSettingsSubPageInTabbedBrowser(Browser* browser,
const std::string& sub_page);
void ShowClearBrowsingDataDialog(Browser* browser);
void ShowPasswordManager(Browser* browser);
void ShowPasswordDetailsPage(Browser* browser,
const std::string& password_domain_name);
void ShowPasswordCheck(Browser* browser);
void ShowSafeBrowsingEnhancedProtection(Browser* browser);
void ShowSafeBrowsingEnhancedProtectionWithIph(
Browser* browser,
safe_browsing::SafeBrowsingSettingReferralMethod referral_method);
void ShowImportDialog(Browser* browser);
void ShowAboutChrome(Browser* browser);
void ShowSearchEngineSettings(Browser* browser);
void ShowWebStore(Browser* browser, std::string_view utm_source_value);
void ShowPrivacySandboxSettings(Browser* browser);
void ShowPrivacySandboxAdMeasurementSettings(Browser* browser);
void ShowAddresses(Browser* browser);
void ShowPaymentMethods(Browser* browser);
void ShowAllSitesSettingsFilteredByRwsOwner(
Browser* browser,
const std::string& rws_owner_host_name);
void ShowEnterpriseManagementPageInTabbedBrowser(Browser* browser);
#if BUILDFLAG(IS_CHROMEOS_ASH)
void ShowAppManagementPage(Profile* profile,
const std::string& app_id,
ash::settings::AppManagementEntryPoint entry_point);
#endif
#if BUILDFLAG(IS_CHROMEOS)
GURL GetOSSettingsUrl(const std::string& sub_page);
void ShowPrintManagementApp(Profile* profile);
void ShowConnectivityDiagnosticsApp(Profile* profile);
void ShowScanningApp(Profile* profile);
void ShowDiagnosticsApp(Profile* profile);
void ShowFirmwareUpdatesApp(Profile* profile);
void ShowShortcutCustomizationApp(Profile* profile);
void ShowShortcutCustomizationApp(Profile* profile,
const std::string& action,
const std::string& category);
#endif
#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_MAC) || BUILDFLAG(IS_LINUX)
void ShowWebAppSettings(Browser* browser,
const std::string& app_id,
web_app::AppSettingsPageEntryPoint entry_point);
void ShowWebAppSettings(Profile* profile,
const std::string& app_id,
web_app::AppSettingsPageEntryPoint entry_point);
#endif
}
#endif