| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // identified by |parent_routing_id| or as the top-level frame if the latter | 115 // identified by |parent_routing_id| or as the top-level frame if the latter |
| 116 // is MSG_ROUTING_NONE. If |proxy_routing_id| is MSG_ROUTING_NONE, it creates | 116 // is MSG_ROUTING_NONE. If |proxy_routing_id| is MSG_ROUTING_NONE, it creates |
| 117 // the Blink WebLocalFrame and inserts it in the proper place in the frame | 117 // the Blink WebLocalFrame and inserts it in the proper place in the frame |
| 118 // tree. Otherwise, the frame is semi-orphaned until it commits, at which | 118 // tree. Otherwise, the frame is semi-orphaned until it commits, at which |
| 119 // point it replaces the proxy identified by |proxy_routing_id|. | 119 // point it replaces the proxy identified by |proxy_routing_id|. |
| 120 // Note: This is called only when RenderFrame is being created in response to | 120 // Note: This is called only when RenderFrame is being created in response to |
| 121 // IPC message from the browser process. All other frame creation is driven | 121 // IPC message from the browser process. All other frame creation is driven |
| 122 // through Blink and Create. | 122 // through Blink and Create. |
| 123 static void CreateFrame(int routing_id, | 123 static void CreateFrame(int routing_id, |
| 124 int parent_routing_id, | 124 int parent_routing_id, |
| 125 int proxy_routing_id); | 125 int proxy_routing_id, |
| 126 const FrameReplicationState& replicated_state); |
| 126 | 127 |
| 127 // Returns the RenderFrameImpl for the given routing ID. | 128 // Returns the RenderFrameImpl for the given routing ID. |
| 128 static RenderFrameImpl* FromRoutingID(int routing_id); | 129 static RenderFrameImpl* FromRoutingID(int routing_id); |
| 129 | 130 |
| 130 // Just like RenderFrame::FromWebFrame but returns the implementation. | 131 // Just like RenderFrame::FromWebFrame but returns the implementation. |
| 131 static RenderFrameImpl* FromWebFrame(blink::WebFrame* web_frame); | 132 static RenderFrameImpl* FromWebFrame(blink::WebFrame* web_frame); |
| 132 | 133 |
| 133 // Used by content_layouttest_support to hook into the creation of | 134 // Used by content_layouttest_support to hook into the creation of |
| 134 // RenderFrameImpls. | 135 // RenderFrameImpls. |
| 135 using CreateRenderFrameImplFunction = RenderFrameImpl* (*)(RenderViewImpl*, | 136 using CreateRenderFrameImplFunction = RenderFrameImpl* (*)(RenderViewImpl*, |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 blink::WebApplicationCacheHostClient* client); | 335 blink::WebApplicationCacheHostClient* client); |
| 335 virtual blink::WebWorkerPermissionClientProxy* | 336 virtual blink::WebWorkerPermissionClientProxy* |
| 336 createWorkerPermissionClientProxy(blink::WebLocalFrame* frame); | 337 createWorkerPermissionClientProxy(blink::WebLocalFrame* frame); |
| 337 virtual blink::WebExternalPopupMenu* createExternalPopupMenu( | 338 virtual blink::WebExternalPopupMenu* createExternalPopupMenu( |
| 338 const blink::WebPopupMenuInfo& popup_menu_info, | 339 const blink::WebPopupMenuInfo& popup_menu_info, |
| 339 blink::WebExternalPopupMenuClient* popup_menu_client); | 340 blink::WebExternalPopupMenuClient* popup_menu_client); |
| 340 virtual blink::WebCookieJar* cookieJar(blink::WebLocalFrame* frame); | 341 virtual blink::WebCookieJar* cookieJar(blink::WebLocalFrame* frame); |
| 341 virtual blink::WebServiceWorkerProvider* createServiceWorkerProvider( | 342 virtual blink::WebServiceWorkerProvider* createServiceWorkerProvider( |
| 342 blink::WebLocalFrame* frame); | 343 blink::WebLocalFrame* frame); |
| 343 virtual void didAccessInitialDocument(blink::WebLocalFrame* frame); | 344 virtual void didAccessInitialDocument(blink::WebLocalFrame* frame); |
| 345 // TODO(alexmos): Remove once Blink is updated to use the version that takes |
| 346 // sandboxFlags. |
| 344 virtual blink::WebFrame* createChildFrame(blink::WebLocalFrame* parent, | 347 virtual blink::WebFrame* createChildFrame(blink::WebLocalFrame* parent, |
| 345 const blink::WebString& name); | 348 const blink::WebString& name); |
| 349 virtual blink::WebFrame* createChildFrame( |
| 350 blink::WebLocalFrame* parent, |
| 351 const blink::WebString& name, |
| 352 blink::WebSandboxFlags sandboxFlags); |
| 346 virtual void didDisownOpener(blink::WebLocalFrame* frame); | 353 virtual void didDisownOpener(blink::WebLocalFrame* frame); |
| 347 virtual void frameDetached(blink::WebFrame* frame); | 354 virtual void frameDetached(blink::WebFrame* frame); |
| 348 virtual void frameFocused(); | 355 virtual void frameFocused(); |
| 349 virtual void willClose(blink::WebFrame* frame); | 356 virtual void willClose(blink::WebFrame* frame); |
| 350 virtual void didChangeName(blink::WebLocalFrame* frame, | 357 virtual void didChangeName(blink::WebLocalFrame* frame, |
| 351 const blink::WebString& name); | 358 const blink::WebString& name); |
| 352 virtual void didMatchCSS( | 359 virtual void didMatchCSS( |
| 353 blink::WebLocalFrame* frame, | 360 blink::WebLocalFrame* frame, |
| 354 const blink::WebVector<blink::WebString>& newly_matching_selectors, | 361 const blink::WebVector<blink::WebString>& newly_matching_selectors, |
| 355 const blink::WebVector<blink::WebString>& stopped_matching_selectors); | 362 const blink::WebVector<blink::WebString>& stopped_matching_selectors); |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 #endif | 843 #endif |
| 837 | 844 |
| 838 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 845 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 839 | 846 |
| 840 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 847 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 841 }; | 848 }; |
| 842 | 849 |
| 843 } // namespace content | 850 } // namespace content |
| 844 | 851 |
| 845 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 852 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |