#include "chrome/browser/ui/webui/app_settings/web_app_settings_navigation_throttle.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/web_applications/proto/web_app_install_state.pb.h"
#include "chrome/browser/web_applications/web_app_provider.h"
#include "chrome/browser/web_applications/web_app_registrar.h"
#include "chrome/browser/web_applications/web_app_utils.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/web_contents.h"
namespace {
bool g_disable_throttle_for_testing_ = …;
}
std::unique_ptr<content::NavigationThrottle>
WebAppSettingsNavigationThrottle::MaybeCreateThrottleFor(
content::NavigationHandle* handle) { … }
void WebAppSettingsNavigationThrottle::DisableForTesting() { … }
WebAppSettingsNavigationThrottle::WebAppSettingsNavigationThrottle(
content::NavigationHandle* navigation_handle)
: … { … }
WebAppSettingsNavigationThrottle::~WebAppSettingsNavigationThrottle() = default;
content::NavigationThrottle::ThrottleCheckResult
WebAppSettingsNavigationThrottle::WillStartRequest() { … }
const char* WebAppSettingsNavigationThrottle::GetNameForLogging() { … }
void WebAppSettingsNavigationThrottle::ContinueCheckForApp(
const webapps::AppId& app_id) { … }