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_PUBLIC_RENDERER_RENDER_FRAME_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 // Returns the RenderFrame given a WebFrame. | 96 // Returns the RenderFrame given a WebFrame. |
97 static RenderFrame* FromWebFrame(blink::WebFrame* web_frame); | 97 static RenderFrame* FromWebFrame(blink::WebFrame* web_frame); |
98 | 98 |
99 // Returns the RenderFrame given a routing id. | 99 // Returns the RenderFrame given a routing id. |
100 static RenderFrame* FromRoutingID(int routing_id); | 100 static RenderFrame* FromRoutingID(int routing_id); |
101 | 101 |
102 // Visit all live RenderFrames. | 102 // Visit all live RenderFrames. |
103 static void ForEach(RenderFrameVisitor* visitor); | 103 static void ForEach(RenderFrameVisitor* visitor); |
104 | 104 |
| 105 // Returns the routing ID for |web_frame|, whether it is a WebLocalFrame in |
| 106 // this process or a WebRemoteFrame placeholder for a frame in a different |
| 107 // process. |
| 108 static int GetRoutingIdForWebFrame(blink::WebFrame* web_frame); |
| 109 |
105 // Returns the RenderView associated with this frame. | 110 // Returns the RenderView associated with this frame. |
106 virtual RenderView* GetRenderView() = 0; | 111 virtual RenderView* GetRenderView() = 0; |
107 | 112 |
108 // Return the RenderAccessibility associated with this frame. | 113 // Return the RenderAccessibility associated with this frame. |
109 virtual RenderAccessibility* GetRenderAccessibility() = 0; | 114 virtual RenderAccessibility* GetRenderAccessibility() = 0; |
110 | 115 |
111 // Get the routing ID of the frame. | 116 // Get the routing ID of the frame. |
112 virtual int GetRoutingID() = 0; | 117 virtual int GetRoutingID() = 0; |
113 | 118 |
114 // Returns the associated WebFrame. | 119 // Returns the associated WebFrame. |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 | 273 |
269 private: | 274 private: |
270 // This interface should only be implemented inside content. | 275 // This interface should only be implemented inside content. |
271 friend class RenderFrameImpl; | 276 friend class RenderFrameImpl; |
272 RenderFrame() {} | 277 RenderFrame() {} |
273 }; | 278 }; |
274 | 279 |
275 } // namespace content | 280 } // namespace content |
276 | 281 |
277 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 282 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
OLD | NEW |