#include "extensions/common/extension_set.h"
#include "base/containers/contains.h"
#include "base/containers/map_util.h"
#include "extensions/common/constants.h"
#include "extensions/common/url_pattern_set.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace extensions {
ExtensionId ExtensionSet::GetExtensionIdByURL(const GURL& url) { … }
ExtensionSet::const_iterator::const_iterator() = default;
ExtensionSet::const_iterator::const_iterator(const const_iterator& other)
: … { … }
ExtensionSet::const_iterator::const_iterator(ExtensionMap::const_iterator it)
: … { … }
ExtensionSet::const_iterator::~const_iterator() = default;
ExtensionSet::ExtensionSet() = default;
ExtensionSet::~ExtensionSet() = default;
ExtensionSet::ExtensionSet(ExtensionSet&&) = default;
ExtensionSet& ExtensionSet::operator=(ExtensionSet&&) noexcept = default;
bool ExtensionSet::Contains(const ExtensionId& extension_id) const { … }
bool ExtensionSet::Insert(const scoped_refptr<const Extension>& extension) { … }
bool ExtensionSet::InsertAll(const ExtensionSet& extensions) { … }
bool ExtensionSet::Remove(const ExtensionId& id) { … }
void ExtensionSet::Clear() { … }
ExtensionId ExtensionSet::GetExtensionOrAppIDByURL(const GURL& url) const { … }
const Extension* ExtensionSet::GetExtensionOrAppByURL(const GURL& url,
bool include_guid) const { … }
const Extension* ExtensionSet::GetAppByURL(const GURL& url) const { … }
const Extension* ExtensionSet::GetHostedAppByURL(const GURL& url) const { … }
const Extension* ExtensionSet::GetHostedAppByOverlappingWebExtent(
const URLPatternSet& extent) const { … }
bool ExtensionSet::InSameExtent(const GURL& old_url,
const GURL& new_url) const { … }
const Extension* ExtensionSet::GetByID(const ExtensionId& id) const { … }
const Extension* ExtensionSet::GetByGUID(const std::string& guid) const { … }
const Extension* ExtensionSet::GetByIDorGUID(
const std::string& id_or_guid) const { … }
ExtensionIdSet ExtensionSet::GetIDs() const { … }
bool ExtensionSet::ExtensionBindingsAllowed(const GURL& url) const { … }
}