// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_WEBUI_APP_SETTINGS_WEB_APP_SETTINGS_NAVIGATION_THROTTLE_H_ #define CHROME_BROWSER_UI_WEBUI_APP_SETTINGS_WEB_APP_SETTINGS_NAVIGATION_THROTTLE_H_ #include "base/memory/weak_ptr.h" #include "components/webapps/common/web_app_id.h" #include "content/public/browser/navigation_throttle.h" namespace content { class NavigationHandle; } // namespace content // A NavigationThrottle that blocks request when navigating to // chrome://app-settings/<app-id> page with an invalid app-id. class WebAppSettingsNavigationThrottle : public content::NavigationThrottle { … }; #endif // CHROME_BROWSER_UI_WEBUI_APP_SETTINGS_WEB_APP_SETTINGS_NAVIGATION_THROTTLE_H_