| 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_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 // given SiteInstance. May return a routing ID of either a RenderFrameHost | 475 // given SiteInstance. May return a routing ID of either a RenderFrameHost |
| 476 // (if opener's current or pending RFH has SiteInstance |instance|) or a | 476 // (if opener's current or pending RFH has SiteInstance |instance|) or a |
| 477 // RenderFrameProxyHost. Returns MSG_ROUTING_NONE if there is no opener, or | 477 // RenderFrameProxyHost. Returns MSG_ROUTING_NONE if there is no opener, or |
| 478 // if the opener node doesn't have a proxy for |instance|. | 478 // if the opener node doesn't have a proxy for |instance|. |
| 479 int GetOpenerRoutingID(SiteInstance* instance); | 479 int GetOpenerRoutingID(SiteInstance* instance); |
| 480 | 480 |
| 481 // Called on the RFHM of the inner WebContents to create a | 481 // Called on the RFHM of the inner WebContents to create a |
| 482 // RenderFrameProxyHost in its outer WebContents's SiteInstance, | 482 // RenderFrameProxyHost in its outer WebContents's SiteInstance, |
| 483 // |outer_contents_site_instance|. The frame in outer WebContents that is | 483 // |outer_contents_site_instance|. The frame in outer WebContents that is |
| 484 // hosting the inner WebContents is |render_frame_host|, and the frame will | 484 // hosting the inner WebContents is |render_frame_host|, and the frame will |
| 485 // be swapped out with the proxy. | 485 // be swapped out with the proxy.Note that this method must only be called |
| 486 // for an OOPIF-based inner WebContents. |
| 486 void CreateOuterDelegateProxy(SiteInstance* outer_contents_site_instance, | 487 void CreateOuterDelegateProxy(SiteInstance* outer_contents_site_instance, |
| 487 RenderFrameHostImpl* render_frame_host); | 488 RenderFrameHostImpl* render_frame_host); |
| 488 | 489 |
| 489 // Sets the child RenderWidgetHostView for this frame, which must be part of | 490 // Sets the child RenderWidgetHostView for this frame, which must be part of |
| 490 // an inner WebContents. | 491 // an inner WebContents. |
| 491 void SetRWHViewForInnerContents(RenderWidgetHostView* child_rwhv); | 492 void SetRWHViewForInnerContents(RenderWidgetHostView* child_rwhv); |
| 492 | 493 |
| 493 // Returns the number of RenderFrameProxyHosts for this frame. | 494 // Returns the number of RenderFrameProxyHosts for this frame. |
| 494 int GetProxyCount(); | 495 int GetProxyCount(); |
| 495 | 496 |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 815 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
| 815 | 816 |
| 816 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 817 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 817 | 818 |
| 818 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 819 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 819 }; | 820 }; |
| 820 | 821 |
| 821 } // namespace content | 822 } // namespace content |
| 822 | 823 |
| 823 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 824 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |