#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "chrome/browser/ui/webui/app_settings/web_app_settings_ui.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/webui/webui_util.h"
#include "chrome/browser/web_applications/web_app_provider.h"
#include "chrome/browser/web_applications/web_app_utils.h"
#include "chrome/common/webui_url_constants.h"
#include "chrome/grit/app_settings_resources.h"
#include "chrome/grit/app_settings_resources_map.h"
#include "chrome/grit/generated_resources.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui.h"
#include "content/public/browser/web_ui_controller.h"
#include "content/public/browser/web_ui_data_source.h"
#include "ui/gfx/native_widget_types.h"
namespace {
void AddAppManagementStrings(content::WebUIDataSource* html_source) { … }
class WebAppSettingsWindowDelegate
: public AppManagementPageHandlerBase::Delegate { … };
}
std::unique_ptr<AppManagementPageHandlerBase::Delegate>
WebAppSettingsUI::CreateAppManagementPageHandlerDelegate(Profile* profile) { … }
WebAppSettingsUI::WebAppSettingsUI(content::WebUI* web_ui)
: … { … }
void WebAppSettingsUI::BindInterface(
mojo::PendingReceiver<app_management::mojom::PageHandlerFactory> receiver) { … }
void WebAppSettingsUI::OnWebAppUninstalled(
const webapps::AppId& app_id,
webapps::WebappUninstallSource uninstall_source) { … }
void WebAppSettingsUI::OnWebAppInstallManagerDestroyed() { … }
WebAppSettingsUI::~WebAppSettingsUI() = default;
WEB_UI_CONTROLLER_TYPE_IMPL(WebAppSettingsUI)