Chromium Code Reviews| 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 <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 491 // |outer_contents_site_instance|. The frame in outer WebContents that is | 491 // |outer_contents_site_instance|. The frame in outer WebContents that is |
| 492 // hosting the inner WebContents is |render_frame_host|, and the frame will | 492 // hosting the inner WebContents is |render_frame_host|, and the frame will |
| 493 // be swapped out with the proxy. | 493 // be swapped out with the proxy. |
| 494 void CreateOuterDelegateProxy(SiteInstance* outer_contents_site_instance, | 494 void CreateOuterDelegateProxy(SiteInstance* outer_contents_site_instance, |
| 495 RenderFrameHostImpl* render_frame_host); | 495 RenderFrameHostImpl* render_frame_host); |
| 496 | 496 |
| 497 // Sets the child RenderWidgetHostView for this frame, which must be part of | 497 // Sets the child RenderWidgetHostView for this frame, which must be part of |
| 498 // an inner WebContents. | 498 // an inner WebContents. |
| 499 void SetRWHViewForInnerContents(RenderWidgetHostView* child_rwhv); | 499 void SetRWHViewForInnerContents(RenderWidgetHostView* child_rwhv); |
| 500 | 500 |
| 501 // Set page-level focus in all SiteInstances involved in rendering the | |
| 502 // current FrameTree, not including the main frame's SiteInstance. The focus | |
|
Charlie Reis
2015/10/16 18:56:09
nit: current main frame's
alexmos
2015/10/16 22:56:06
Done.
| |
| 503 // update will be sent via the main frame's proxies in those SiteInstances. | |
| 504 // Expected to be called only on the main frame. | |
| 505 void ReplicatePageFocus(bool is_focused); | |
| 506 | |
| 501 // Returns a copy of the map of proxy hosts. The keys are SiteInstance IDs, | 507 // Returns a copy of the map of proxy hosts. The keys are SiteInstance IDs, |
| 502 // the values are RenderFrameProxyHosts. | 508 // the values are RenderFrameProxyHosts. |
| 503 std::map<int, RenderFrameProxyHost*> GetAllProxyHostsForTesting(); | 509 std::map<int, RenderFrameProxyHost*> GetAllProxyHostsForTesting(); |
| 504 | 510 |
| 505 private: | 511 private: |
| 506 friend class NavigatorTestWithBrowserSideNavigation; | 512 friend class NavigatorTestWithBrowserSideNavigation; |
| 507 friend class RenderFrameHostManagerTest; | 513 friend class RenderFrameHostManagerTest; |
| 508 friend class TestWebContents; | 514 friend class TestWebContents; |
| 509 | 515 |
| 510 // Stores information regarding a SiteInstance targeted at a specific URL to | 516 // Stores information regarding a SiteInstance targeted at a specific URL to |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 828 bool should_reuse_web_ui_; | 834 bool should_reuse_web_ui_; |
| 829 | 835 |
| 830 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 836 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 831 | 837 |
| 832 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 838 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 833 }; | 839 }; |
| 834 | 840 |
| 835 } // namespace content | 841 } // namespace content |
| 836 | 842 |
| 837 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 843 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |