#include "base/memory/raw_ptr.h"
#include "extensions/browser/api/networking_private/networking_private_event_router.h"
#include "content/public/browser/browser_context.h"
#include "extensions/browser/api/networking_private/networking_private_delegate_factory.h"
#include "extensions/browser/api/networking_private/networking_private_delegate_observer.h"
#include "extensions/common/api/networking_private.h"
namespace extensions {
namespace {
constexpr const char* kEventNames[] = …;
}
class NetworkingPrivateEventRouterImpl
: public NetworkingPrivateEventRouter,
public NetworkingPrivateDelegateObserver { … };
NetworkingPrivateEventRouterImpl::NetworkingPrivateEventRouterImpl(
content::BrowserContext* browser_context)
: … { … }
NetworkingPrivateEventRouterImpl::~NetworkingPrivateEventRouterImpl() { … }
void NetworkingPrivateEventRouterImpl::Shutdown() { … }
void NetworkingPrivateEventRouterImpl::OnListenerAdded(
const EventListenerInfo& details) { … }
void NetworkingPrivateEventRouterImpl::OnListenerRemoved(
const EventListenerInfo& details) { … }
void NetworkingPrivateEventRouterImpl::StartOrStopListeningForNetworkChanges() { … }
void NetworkingPrivateEventRouterImpl::OnNetworksChangedEvent(
const std::vector<std::string>& network_guids) { … }
void NetworkingPrivateEventRouterImpl::OnNetworkListChangedEvent(
const std::vector<std::string>& network_guids) { … }
void NetworkingPrivateEventRouterImpl::OnDeviceStateListChanged() { … }
void NetworkingPrivateEventRouterImpl::OnPortalDetectionCompleted(
std::string guid,
api::networking_private::CaptivePortalStatus status) { … }
void NetworkingPrivateEventRouterImpl::OnCertificateListsChanged() { … }
std::unique_ptr<NetworkingPrivateEventRouter>
NetworkingPrivateEventRouter::Create(content::BrowserContext* browser_context) { … }
}