OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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. |
| 4 |
| 5 #ifndef CONTENT_RENDERER_RENDER_PROCESS_OBSERVER_H_ |
| 6 #define CONTENT_RENDERER_RENDER_PROCESS_OBSERVER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 #include "ipc/ipc_message.h" |
| 11 |
| 12 // Base class for objects that want to filter control IPC messages. |
| 13 class RenderProcessObserver { |
| 14 public: |
| 15 virtual ~RenderProcessObserver(); |
| 16 |
| 17 // Allows filtering of control messages. |
| 18 virtual bool OnControlMessageReceived(const IPC::Message& message); |
| 19 |
| 20 // Notification that the render process is shutting down. |
| 21 virtual void OnRenderProcessShutdown(); |
| 22 |
| 23 private: |
| 24 DISALLOW_COPY_AND_ASSIGN(RenderProcessObserver); |
| 25 }; |
| 26 |
| 27 #endif // CONTENT_RENDERER_RENDER_PROCESS_OBSERVER_H_ |
OLD | NEW |