chromium/components/js_injection/common/origin_matcher.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

}  // namespace

OriginMatcher::OriginMatcher() = default;
// Allow copy and assign.
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 {}

}  // namespace js_injection