| 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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 bool CreateRenderFrame(int proxy_routing_id, | 210 bool CreateRenderFrame(int proxy_routing_id, |
| 211 int opener_routing_id, | 211 int opener_routing_id, |
| 212 int parent_routing_id, | 212 int parent_routing_id, |
| 213 int previous_sibling_routing_id); | 213 int previous_sibling_routing_id); |
| 214 | 214 |
| 215 // Tracks whether the RenderFrame for this RenderFrameHost has been created in | 215 // Tracks whether the RenderFrame for this RenderFrameHost has been created in |
| 216 // the renderer process. This is currently only used for subframes. | 216 // the renderer process. This is currently only used for subframes. |
| 217 // TODO(creis): Use this for main frames as well when RVH goes away. | 217 // TODO(creis): Use this for main frames as well when RVH goes away. |
| 218 void SetRenderFrameCreated(bool created); | 218 void SetRenderFrameCreated(bool created); |
| 219 | 219 |
| 220 // Called for renderer-created windows to resume requests from this frame, | |
| 221 // after they are blocked in RenderWidgetHelper::CreateNewWindow. | |
| 222 void Init(); | |
| 223 | |
| 224 int routing_id() const { return routing_id_; } | 220 int routing_id() const { return routing_id_; } |
| 225 void OnCreateChildFrame( | 221 void OnCreateChildFrame( |
| 226 int new_routing_id, | 222 int new_routing_id, |
| 227 blink::WebTreeScopeType scope, | 223 blink::WebTreeScopeType scope, |
| 228 const std::string& frame_name, | 224 const std::string& frame_name, |
| 229 blink::WebSandboxFlags sandbox_flags, | 225 blink::WebSandboxFlags sandbox_flags, |
| 230 const blink::WebFrameOwnerProperties& frame_owner_properties); | 226 const blink::WebFrameOwnerProperties& frame_owner_properties); |
| 231 | 227 |
| 232 RenderViewHostImpl* render_view_host() { return render_view_host_; } | 228 RenderViewHostImpl* render_view_host() { return render_view_host_; } |
| 233 RenderFrameHostDelegate* delegate() { return delegate_; } | 229 RenderFrameHostDelegate* delegate() { return delegate_; } |
| (...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 892 | 888 |
| 893 // NOTE: This must be the last member. | 889 // NOTE: This must be the last member. |
| 894 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 890 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 895 | 891 |
| 896 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 892 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 897 }; | 893 }; |
| 898 | 894 |
| 899 } // namespace content | 895 } // namespace content |
| 900 | 896 |
| 901 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 897 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |