chromium/extensions/renderer/bindings/listener_tracker.cc

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

#include "extensions/renderer/bindings/listener_tracker.h"

#include "base/check.h"
#include "base/not_fatal_until.h"
#include "extensions/common/mojom/event_dispatcher.mojom.h"
#include "extensions/common/value_counter.h"

namespace extensions {

ListenerTracker::ListenerTracker() = default;
ListenerTracker::~ListenerTracker() = default;

bool ListenerTracker::AddUnfilteredListener(const std::string& context_owner_id,
                                            const std::string& event_name) {}

bool ListenerTracker::RemoveUnfilteredListener(
    const std::string& context_owner_id,
    const std::string& event_name) {}

std::pair<bool, int> ListenerTracker::AddFilteredListener(
    const std::string& context_owner_id,
    const std::string& event_name,
    std::unique_ptr<base::Value::Dict> filter,
    int routing_id) {}

std::pair<bool, std::unique_ptr<base::Value::Dict>>
ListenerTracker::RemoveFilteredListener(const std::string& context_owner_id,
                                        const std::string& event_name,
                                        int filter_id) {}

std::set<int> ListenerTracker::GetMatchingFilteredListeners(
    const std::string& event_name,
    mojom::EventFilteringInfoPtr filter,
    int routing_id) {}

}  // namespace extensions