#include "components/js_injection/common/origin_matcher.h"
#include "base/containers/adapters.h"
#include "components/js_injection/common/origin_matcher_internal.h"
#include "net/base/ip_address.h"
#include "net/base/ip_endpoint.h"
#include "net/base/parse_number.h"
#include "net/base/url_util.h"
#include "url/gurl.h"
#include "url/origin.h"
#include "url/url_constants.h"
#include "url/url_util.h"
namespace js_injection {
namespace {
inline int GetDefaultPortForSchemeIfNoPortInfo(const std::string& scheme,
int port) { … }
}
OriginMatcher::OriginMatcher() = default;
OriginMatcher::OriginMatcher(OriginMatcher&&) = default;
OriginMatcher& OriginMatcher::operator=(OriginMatcher&&) = default;
OriginMatcher::~OriginMatcher() = default;
OriginMatcher::OriginMatcher(const OriginMatcher& rhs) { … }
OriginMatcher& OriginMatcher::operator=(const OriginMatcher& rhs) { … }
void OriginMatcher::SetRules(RuleList rules) { … }
bool OriginMatcher::AddRuleFromString(const std::string& raw_untrimmed) { … }
bool OriginMatcher::Matches(const url::Origin& origin) const { … }
std::vector<std::string> OriginMatcher::Serialize() const { … }
}