| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_OBSERVER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_OBSERVER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_OBSERVER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_OBSERVER_H_ |
| 7 | 7 |
| 8 #include "ipc/ipc_channel.h" | 8 #include "ipc/ipc_channel.h" |
| 9 #include "content/common/content_export.h" |
| 9 | 10 |
| 10 class RenderViewHost; | 11 class RenderViewHost; |
| 11 struct ViewMsg_Navigate_Params; | 12 struct ViewMsg_Navigate_Params; |
| 12 | 13 |
| 13 // An observer API implemented by classes which want to filter IPC messages from | 14 // An observer API implemented by classes which want to filter IPC messages from |
| 14 // RenderViewHost. | 15 // RenderViewHost. |
| 15 class RenderViewHostObserver : public IPC::Channel::Listener, | 16 class CONTENT_EXPORT RenderViewHostObserver : public IPC::Channel::Listener, |
| 16 public IPC::Message::Sender { | 17 public IPC::Message::Sender { |
| 17 public: | 18 public: |
| 18 | 19 |
| 19 protected: | 20 protected: |
| 20 explicit RenderViewHostObserver(RenderViewHost* render_view_host); | 21 explicit RenderViewHostObserver(RenderViewHost* render_view_host); |
| 21 | 22 |
| 22 virtual ~RenderViewHostObserver(); | 23 virtual ~RenderViewHostObserver(); |
| 23 | 24 |
| 24 // Invoked after the RenderViewHost is created in the renderer process. After | 25 // Invoked after the RenderViewHost is created in the renderer process. After |
| 25 // this point, messages can be sent to it (or to observers in the renderer). | 26 // this point, messages can be sent to it (or to observers in the renderer). |
| 26 virtual void RenderViewHostInitialized(); | 27 virtual void RenderViewHostInitialized(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 50 | 51 |
| 51 RenderViewHost* render_view_host_; | 52 RenderViewHost* render_view_host_; |
| 52 | 53 |
| 53 // The routing ID of the associated RenderViewHost. | 54 // The routing ID of the associated RenderViewHost. |
| 54 int routing_id_; | 55 int routing_id_; |
| 55 | 56 |
| 56 DISALLOW_COPY_AND_ASSIGN(RenderViewHostObserver); | 57 DISALLOW_COPY_AND_ASSIGN(RenderViewHostObserver); |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_OBSERVER_H_ | 60 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_OBSERVER_H_ |
| OLD | NEW |