#include "content/browser/sms/user_consent_handler.h"
#include "base/functional/callback.h"
#include "content/browser/sms/webotp_service.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_delegate.h"
SmsStatus;
namespace content {
NoopUserConsentHandler::~NoopUserConsentHandler() = default;
void NoopUserConsentHandler::RequestUserConsent(
const std::string& one_time_code,
CompletionCallback on_complete) { … }
bool NoopUserConsentHandler::is_active() const { … }
bool NoopUserConsentHandler::is_async() const { … }
PromptBasedUserConsentHandler::PromptBasedUserConsentHandler(
RenderFrameHost& frame_host,
const OriginList& origin_list)
: … { … }
PromptBasedUserConsentHandler::~PromptBasedUserConsentHandler() = default;
void PromptBasedUserConsentHandler::RequestUserConsent(
const std::string& one_time_code,
CompletionCallback on_complete) { … }
bool PromptBasedUserConsentHandler::is_active() const { … }
bool PromptBasedUserConsentHandler::is_async() const { … }
void PromptBasedUserConsentHandler::OnConfirm() { … }
void PromptBasedUserConsentHandler::OnCancel() { … }
}