#include "extensions/common/event_filter.h"
#include <string>
#include <utility>
#include "base/logging.h"
#include "base/not_fatal_until.h"
#include "base/notreached.h"
#include "components/url_matcher/url_matcher_factory.h"
#include "extensions/common/mojom/event_dispatcher.mojom.h"
#include "ipc/ipc_message.h"
URLMatcher;
URLMatcherConditionSet;
URLMatcherFactory;
namespace extensions {
EventFilter::EventMatcherEntry::EventMatcherEntry(
std::unique_ptr<EventMatcher> event_matcher,
URLMatcher* url_matcher,
const URLMatcherConditionSet::Vector& condition_sets)
: … { … }
EventFilter::EventMatcherEntry::~EventMatcherEntry() { … }
void EventFilter::EventMatcherEntry::DontRemoveConditionSetsInDestructor() { … }
EventFilter::EventFilter()
: … { … }
EventFilter::~EventFilter() { … }
EventFilter::MatcherID EventFilter::AddEventMatcher(
const std::string& event_name,
std::unique_ptr<EventMatcher> matcher) { … }
EventMatcher* EventFilter::GetEventMatcher(MatcherID id) { … }
const std::string& EventFilter::GetEventName(MatcherID id) const { … }
bool EventFilter::CreateConditionSets(
EventMatcher* matcher,
URLMatcherConditionSet::Vector* condition_sets) { … }
bool EventFilter::AddDictionaryAsConditionSet(
const base::Value::Dict& url_filter,
URLMatcherConditionSet::Vector* condition_sets) { … }
std::string EventFilter::RemoveEventMatcher(MatcherID id) { … }
std::set<EventFilter::MatcherID> EventFilter::MatchEvent(
const std::string& event_name,
const mojom::EventFilteringInfo& event_info,
int routing_id) const { … }
int EventFilter::GetMatcherCountForEventForTesting(
const std::string& name) const { … }
}