#include "content/browser/sms/sms_fetcher_impl.h"
#include "base/functional/callback.h"
#include "content/browser/browser_main_loop.h"
#include "content/browser/sms/sms_parser.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_client.h"
namespace content {
const char kSmsFetcherImplKeyName[] = …;
SmsFetcherImpl::SmsFetcherImpl(SmsProvider* provider) : … { … }
SmsFetcherImpl::~SmsFetcherImpl() { … }
SmsFetcher* SmsFetcher::Get(BrowserContext* context) { … }
void SmsFetcherImpl::Subscribe(const OriginList& origin_list,
SmsQueue::Subscriber& subscriber) { … }
void SmsFetcherImpl::Subscribe(const OriginList& origin_list,
SmsQueue::Subscriber& subscriber,
RenderFrameHost& render_frame_host) { … }
void SmsFetcherImpl::Unsubscribe(const OriginList& origin_list,
SmsQueue::Subscriber* subscriber) { … }
bool SmsFetcherImpl::Notify(const OriginList& origin_list,
const std::string& one_time_code,
UserConsent consent_requirement) { … }
void SmsFetcherImpl::OnRemote(std::optional<OriginList> origin_list,
std::optional<std::string> one_time_code,
std::optional<FailureType> failure_type) { … }
bool SmsFetcherImpl::OnReceive(const OriginList& origin_list,
const std::string& one_time_code,
UserConsent consent_requirement) { … }
bool SmsFetcherImpl::OnFailure(FailureType failure_type) { … }
bool SmsFetcherImpl::HasSubscribers() { … }
}