#include "components/search_engines/search_host_to_urls_map.h"
#include <memory>
#include <string_view>
#include "base/ranges/algorithm.h"
#include "components/search_engines/template_url.h"
SearchHostToURLsMap::SearchHostToURLsMap()
: … { … }
SearchHostToURLsMap::~SearchHostToURLsMap() { … }
void SearchHostToURLsMap::Init(
const TemplateURL::OwnedTemplateURLVector& template_urls,
const SearchTermsData& search_terms_data) { … }
void SearchHostToURLsMap::Add(TemplateURL* template_url,
const SearchTermsData& search_terms_data) { … }
void SearchHostToURLsMap::Remove(const TemplateURL* template_url) { … }
TemplateURL* SearchHostToURLsMap::GetTemplateURLForHost(std::string_view host) { … }
SearchHostToURLsMap::TemplateURLSet* SearchHostToURLsMap::GetURLsForHost(
std::string_view host) { … }
void SearchHostToURLsMap::Add(
const TemplateURL::OwnedTemplateURLVector& template_urls,
const SearchTermsData& search_terms_data) { … }