| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // RenderFrameImpls. | 52 // RenderFrameImpls. |
| 53 static void InstallCreateHook( | 53 static void InstallCreateHook( |
| 54 RenderFrameImpl* (*create_render_frame_impl)(RenderViewImpl*, int32)); | 54 RenderFrameImpl* (*create_render_frame_impl)(RenderViewImpl*, int32)); |
| 55 | 55 |
| 56 virtual ~RenderFrameImpl(); | 56 virtual ~RenderFrameImpl(); |
| 57 | 57 |
| 58 // TODO(jam): this is a temporary getter until all the code is transitioned | 58 // TODO(jam): this is a temporary getter until all the code is transitioned |
| 59 // to using RenderFrame instead of RenderView. | 59 // to using RenderFrame instead of RenderView. |
| 60 RenderViewImpl* render_view() { return render_view_; } | 60 RenderViewImpl* render_view() { return render_view_; } |
| 61 | 61 |
| 62 int routing_id() const { return routing_id_; } | |
| 63 | |
| 64 // Returns the RenderWidget associated with this frame. | 62 // Returns the RenderWidget associated with this frame. |
| 65 RenderWidget* GetRenderWidget(); | 63 RenderWidget* GetRenderWidget(); |
| 66 | 64 |
| 67 #if defined(ENABLE_PLUGINS) | 65 #if defined(ENABLE_PLUGINS) |
| 68 // Notification that a PPAPI plugin has been created. | 66 // Notification that a PPAPI plugin has been created. |
| 69 void PepperPluginCreated(RendererPpapiHost* host); | 67 void PepperPluginCreated(RendererPpapiHost* host); |
| 70 | 68 |
| 71 // Indicates that the given instance has been created. | 69 // Indicates that the given instance has been created. |
| 72 void PepperInstanceCreated(PepperPluginInstanceImpl* instance); | 70 void PepperInstanceCreated(PepperPluginInstanceImpl* instance); |
| 73 | 71 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 } | 151 } |
| 154 #endif // ENABLE_PLUGINS | 152 #endif // ENABLE_PLUGINS |
| 155 | 153 |
| 156 // IPC::Sender | 154 // IPC::Sender |
| 157 virtual bool Send(IPC::Message* msg) OVERRIDE; | 155 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 158 | 156 |
| 159 // IPC::Listener | 157 // IPC::Listener |
| 160 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 158 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| 161 | 159 |
| 162 // RenderFrame implementation: | 160 // RenderFrame implementation: |
| 161 virtual int GetRoutingID() OVERRIDE; |
| 163 virtual blink::WebPlugin* CreatePlugin( | 162 virtual blink::WebPlugin* CreatePlugin( |
| 164 blink::WebFrame* frame, | 163 blink::WebFrame* frame, |
| 165 const WebPluginInfo& info, | 164 const WebPluginInfo& info, |
| 166 const blink::WebPluginParams& params) OVERRIDE; | 165 const blink::WebPluginParams& params) OVERRIDE; |
| 167 | 166 |
| 168 // blink::WebFrameClient implementation ------------------------------------- | 167 // blink::WebFrameClient implementation ------------------------------------- |
| 169 virtual blink::WebPlugin* createPlugin( | 168 virtual blink::WebPlugin* createPlugin( |
| 170 blink::WebFrame* frame, | 169 blink::WebFrame* frame, |
| 171 const blink::WebPluginParams& params); | 170 const blink::WebPluginParams& params); |
| 172 virtual blink::WebMediaPlayer* createMediaPlayer( | 171 virtual blink::WebMediaPlayer* createMediaPlayer( |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 | 344 |
| 346 // All the registered observers. | 345 // All the registered observers. |
| 347 ObserverList<RenderFrameObserver> observers_; | 346 ObserverList<RenderFrameObserver> observers_; |
| 348 | 347 |
| 349 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 348 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 350 }; | 349 }; |
| 351 | 350 |
| 352 } // namespace content | 351 } // namespace content |
| 353 | 352 |
| 354 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 353 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |