| 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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 SiteInstanceRelation relation; | 553 SiteInstanceRelation relation; |
| 554 }; | 554 }; |
| 555 | 555 |
| 556 // Create a RenderFrameProxyHost owned by this object. | 556 // Create a RenderFrameProxyHost owned by this object. |
| 557 RenderFrameProxyHost* CreateRenderFrameProxyHost(SiteInstance* site_instance, | 557 RenderFrameProxyHost* CreateRenderFrameProxyHost(SiteInstance* site_instance, |
| 558 RenderViewHostImpl* rvh); | 558 RenderViewHostImpl* rvh); |
| 559 // Delete a RenderFrameProxyHost owned by this object. | 559 // Delete a RenderFrameProxyHost owned by this object. |
| 560 void DeleteRenderFrameProxyHost(SiteInstance* site_instance); | 560 void DeleteRenderFrameProxyHost(SiteInstance* site_instance); |
| 561 | 561 |
| 562 // Returns whether this tab should transition to a new renderer for | 562 // Returns whether this tab should transition to a new renderer for |
| 563 // cross-site URLs. Enabled unless we see the --process-per-tab command line | 563 // cross-site URLs. Enabled unless we see the --single-process command line |
| 564 // switch. Can be overridden in unit tests. | 564 // switch. |
| 565 bool ShouldTransitionCrossSite(); | 565 bool ShouldTransitionCrossSite(); |
| 566 | 566 |
| 567 // Returns true if for the navigation from |current_effective_url| to | 567 // Returns true if for the navigation from |current_effective_url| to |
| 568 // |new_effective_url|, a new SiteInstance and BrowsingInstance should be | 568 // |new_effective_url|, a new SiteInstance and BrowsingInstance should be |
| 569 // created (even if we are in a process model that doesn't usually swap). | 569 // created (even if we are in a process model that doesn't usually swap). |
| 570 // This forces a process swap and severs script connections with existing | 570 // This forces a process swap and severs script connections with existing |
| 571 // tabs. Cases where this can happen include transitions between WebUI and | 571 // tabs. Cases where this can happen include transitions between WebUI and |
| 572 // regular web pages. |new_site_instance| may be null. | 572 // regular web pages. |new_site_instance| may be null. |
| 573 // If there is no current NavigationEntry, then |current_is_view_source_mode| | 573 // If there is no current NavigationEntry, then |current_is_view_source_mode| |
| 574 // should be the same as |new_is_view_source_mode|. | 574 // should be the same as |new_is_view_source_mode|. |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 806 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
| 807 | 807 |
| 808 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 808 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 809 | 809 |
| 810 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 810 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 811 }; | 811 }; |
| 812 | 812 |
| 813 } // namespace content | 813 } // namespace content |
| 814 | 814 |
| 815 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 815 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |