Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / content / public / renderer / render_process_observer.h
blob582a60fb5e4b0823fa4eaa0c5dd65f1eed2d3126
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_PROCESS_OBSERVER_H_
6 #define CONTENT_PUBLIC_RENDERER_RENDER_PROCESS_OBSERVER_H_
8 #include "base/basictypes.h"
9 #include "content/common/content_export.h"
11 namespace IPC {
12 class Message;
15 namespace content {
17 // Base class for objects that want to filter control IPC messages and get
18 // notified of events.
19 class CONTENT_EXPORT RenderProcessObserver {
20 public:
21 RenderProcessObserver() {}
22 virtual ~RenderProcessObserver() {}
24 // Allows filtering of control messages.
25 virtual bool OnControlMessageReceived(const IPC::Message& message);
27 // Notification that the render process is shutting down.
28 virtual void OnRenderProcessShutdown() {}
30 // Called right after the WebKit API is initialized.
31 virtual void WebKitInitialized() {}
33 // Called when the renderer cache of the plugin list has changed.
34 virtual void PluginListChanged() {}
36 virtual void IdleNotification() {}
38 // Called when the network state changes.
39 virtual void NetworkStateChanged(bool online) {}
41 private:
42 DISALLOW_COPY_AND_ASSIGN(RenderProcessObserver);
45 } // namespace content
47 #endif // CONTENT_PUBLIC_RENDERER_RENDER_PROCESS_OBSERVER_H_