#include "content/browser/sms/sms_parser.h"
#include <string>
#include <string_view>
#include <utility>
#include "net/base/url_util.h"
#include "third_party/re2/src/re2/re2.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace content {
namespace {
constexpr char kOtpFormatRegex[] = …;
SmsParsingStatus;
ParseDomainResult;
ParseDomainResult ParseDomain(const std::string& domain) { … }
}
SmsParser::Result::Result(SmsParsingStatus status) : … { … }
SmsParser::Result::Result(const url::Origin& top_origin,
const url::Origin& embedded_origin,
const std::string& one_time_code)
: … { … }
SmsParser::Result::Result(const Result& other) = default;
SmsParser::Result::~Result() = default;
OriginList SmsParser::Result::GetOriginList() const { … }
SmsParser::Result SmsParser::Parse(std::string_view sms) { … }
}