| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // Creates a new RenderFrame. |render_view| is the RenderView object that this | 47 // Creates a new RenderFrame. |render_view| is the RenderView object that this |
| 48 // frame belongs to. | 48 // frame belongs to. |
| 49 static RenderFrameImpl* Create(RenderViewImpl* render_view, int32 routing_id); | 49 static RenderFrameImpl* Create(RenderViewImpl* render_view, int32 routing_id); |
| 50 | 50 |
| 51 // Used by content_layouttest_support to hook into the creation of | 51 // Used by content_layouttest_support to hook into the creation of |
| 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 void operator delete(void*); |
| 57 | 58 |
| 58 // TODO(jam): this is a temporary getter until all the code is transitioned | 59 // TODO(jam): this is a temporary getter until all the code is transitioned |
| 59 // to using RenderFrame instead of RenderView. | 60 // to using RenderFrame instead of RenderView. |
| 60 RenderViewImpl* render_view() { return render_view_; } | 61 RenderViewImpl* render_view() { return render_view_; } |
| 61 | 62 |
| 62 // Returns the RenderWidget associated with this frame. | 63 // Returns the RenderWidget associated with this frame. |
| 63 RenderWidget* GetRenderWidget(); | 64 RenderWidget* GetRenderWidget(); |
| 64 | 65 |
| 65 // Called by RenderView right after creating this object when the | 66 // Called by RenderView right after creating this object when the |
| 66 // blink::WebFrame has been created. | 67 // blink::WebFrame has been created. |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 | 342 |
| 342 // All the registered observers. | 343 // All the registered observers. |
| 343 ObserverList<RenderFrameObserver> observers_; | 344 ObserverList<RenderFrameObserver> observers_; |
| 344 | 345 |
| 345 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 346 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 346 }; | 347 }; |
| 347 | 348 |
| 348 } // namespace content | 349 } // namespace content |
| 349 | 350 |
| 350 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 351 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |