| 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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 // |outer_contents_site_instance|. The frame in outer WebContents that is | 476 // |outer_contents_site_instance|. The frame in outer WebContents that is |
| 477 // hosting the inner WebContents is |render_frame_host|, and the frame will | 477 // hosting the inner WebContents is |render_frame_host|, and the frame will |
| 478 // be swapped out with the proxy. | 478 // be swapped out with the proxy. |
| 479 void CreateOuterDelegateProxy(SiteInstance* outer_contents_site_instance, | 479 void CreateOuterDelegateProxy(SiteInstance* outer_contents_site_instance, |
| 480 RenderFrameHostImpl* render_frame_host); | 480 RenderFrameHostImpl* render_frame_host); |
| 481 | 481 |
| 482 // Sets the child RenderWidgetHostView for this frame, which must be part of | 482 // Sets the child RenderWidgetHostView for this frame, which must be part of |
| 483 // an inner WebContents. | 483 // an inner WebContents. |
| 484 void SetRWHViewForInnerContents(RenderWidgetHostView* child_rwhv); | 484 void SetRWHViewForInnerContents(RenderWidgetHostView* child_rwhv); |
| 485 | 485 |
| 486 // Returns the number of RenderFrameProxyHosts for this frame. |
| 487 int GetProxyCount(); |
| 488 |
| 486 // Returns a copy of the map of proxy hosts. The keys are SiteInstance IDs, | 489 // Returns a copy of the map of proxy hosts. The keys are SiteInstance IDs, |
| 487 // the values are RenderFrameProxyHosts. | 490 // the values are RenderFrameProxyHosts. |
| 488 std::map<int, RenderFrameProxyHost*> GetAllProxyHostsForTesting(); | 491 std::map<int, RenderFrameProxyHost*> GetAllProxyHostsForTesting(); |
| 489 | 492 |
| 490 // SiteInstanceImpl::Observer | 493 // SiteInstanceImpl::Observer |
| 491 void ActiveFrameCountIsZero(SiteInstanceImpl* site_instance) override; | 494 void ActiveFrameCountIsZero(SiteInstanceImpl* site_instance) override; |
| 492 void RenderProcessGone(SiteInstanceImpl* site_instance) override; | 495 void RenderProcessGone(SiteInstanceImpl* site_instance) override; |
| 493 | 496 |
| 494 private: | 497 private: |
| 495 friend class NavigatorTestWithBrowserSideNavigation; | 498 friend class NavigatorTestWithBrowserSideNavigation; |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 774 scoped_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 777 scoped_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
| 775 | 778 |
| 776 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 779 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 777 | 780 |
| 778 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 781 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 779 }; | 782 }; |
| 780 | 783 |
| 781 } // namespace content | 784 } // namespace content |
| 782 | 785 |
| 783 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 786 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |