#include "chrome/browser/apps/link_capturing/web_app_link_capturing_delegate.h"
#include <optional>
#include "base/functional/bind.h"
#include "base/memory/values_equivalent.h"
#include "chrome/browser/web_applications/web_app_command_scheduler.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_tab_helper.h"
#include "chrome/browser/web_applications/web_app_utils.h"
#include "components/webapps/common/web_app_id.h"
#include "content/public/browser/navigation_handle.h"
namespace web_app {
namespace {
void LaunchAppAndMaybeTriggerIPH(base::WeakPtr<Profile> profile,
const webapps::AppId& app_id,
const GURL& url,
base::OnceClosure callback) { … }
}
WebAppLinkCapturingDelegate::WebAppLinkCapturingDelegate() = default;
WebAppLinkCapturingDelegate::~WebAppLinkCapturingDelegate() = default;
bool WebAppLinkCapturingDelegate::ShouldCancelThrottleCreation(
content::NavigationHandle* handle) { … }
std::optional<apps::LinkCapturingNavigationThrottle::LaunchCallback>
WebAppLinkCapturingDelegate::CreateLinkCaptureLaunchClosure(
Profile* profile,
content::WebContents* web_contents,
const GURL& url,
bool is_navigation_from_link) { … }
}