#ifndef ANDROID_WEBVIEW_BROWSER_AW_ENTERPRISE_AUTHENTICATION_APP_LINK_MANAGER_H_
#define ANDROID_WEBVIEW_BROWSER_AW_ENTERPRISE_AUTHENTICATION_APP_LINK_MANAGER_H_
#include <memory>
#include "base/memory/raw_ptr.h"
#include "components/prefs/pref_change_registrar.h"
#include "components/prefs/pref_service.h"
#include "components/url_matcher/url_matcher.h"
#include "url/gurl.h"
namespace android_webview {
class EnterpriseAuthenticationAppLinkManager {
public:
explicit EnterpriseAuthenticationAppLinkManager(PrefService* pref_service);
EnterpriseAuthenticationAppLinkManager(
const EnterpriseAuthenticationAppLinkManager&) = delete;
EnterpriseAuthenticationAppLinkManager& operator=(
const EnterpriseAuthenticationAppLinkManager&) = delete;
~EnterpriseAuthenticationAppLinkManager();
bool IsEnterpriseAuthenticationUrl(const GURL& url);
private:
void OnPolicyUpdated();
PrefChangeRegistrar pref_observer_;
std::unique_ptr<url_matcher::URLMatcher> url_matcher_;
raw_ptr<PrefService> pref_service_;
};
}
#endif