blob: db090b2378a519977fbe8ea3d0b2adfa9a0cf767 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/macros.h"
#include "content/common/content_export.h"
namespace IPC {
class Message;
namespace content {
class AssociatedInterfaceRegistry;
// Base class for objects that want to filter control IPC messages and get
// notified of events.
class CONTENT_EXPORT RenderThreadObserver {
RenderThreadObserver() {}
virtual ~RenderThreadObserver() {}
// Allows handling incoming Mojo requests.
virtual void RegisterMojoInterfaces(
AssociatedInterfaceRegistry* associated_interfaces) {}
virtual void UnregisterMojoInterfaces(
AssociatedInterfaceRegistry* associated_interfaces) {}
// Allows filtering of control messages.
virtual bool OnControlMessageReceived(const IPC::Message& message);
// Notification that the render process is shutting down.
virtual void OnRenderProcessShutdown() {}
// Called when the renderer cache of the plugin list has changed.
virtual void PluginListChanged() {}
virtual void IdleNotification() {}
// Called when the network state changes.
virtual void NetworkStateChanged(bool online) {}
} // namespace content