| 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 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 // |pending_render_frame_host_| while respecting the opener route if needed | 483 // |pending_render_frame_host_| while respecting the opener route if needed |
| 484 // and stores it in pending_render_frame_host_. | 484 // and stores it in pending_render_frame_host_. |
| 485 void CreatePendingRenderFrameHost(SiteInstance* old_instance, | 485 void CreatePendingRenderFrameHost(SiteInstance* old_instance, |
| 486 SiteInstance* new_instance, | 486 SiteInstance* new_instance, |
| 487 bool is_main_frame); | 487 bool is_main_frame); |
| 488 | 488 |
| 489 // Ensure that we have created RFHs for the new RFH's opener chain if | 489 // Ensure that we have created RFHs for the new RFH's opener chain if |
| 490 // we are staying in the same BrowsingInstance. This allows the new RFH | 490 // we are staying in the same BrowsingInstance. This allows the new RFH |
| 491 // to send cross-process script calls to its opener(s). Returns the opener | 491 // to send cross-process script calls to its opener(s). Returns the opener |
| 492 // route ID to be used for the new RenderView to be created. | 492 // route ID to be used for the new RenderView to be created. |
| 493 // |create_render_frame_flags| allows the method to set additional flags. | |
| 494 int CreateOpenerRenderViewsIfNeeded(SiteInstance* old_instance, | 493 int CreateOpenerRenderViewsIfNeeded(SiteInstance* old_instance, |
| 495 SiteInstance* new_instance, | 494 SiteInstance* new_instance); |
| 496 int* create_render_frame_flags); | |
| 497 | 495 |
| 498 // Creates a RenderFrameHost and corresponding RenderViewHost if necessary. | 496 // Creates a RenderFrameHost and corresponding RenderViewHost if necessary. |
| 499 scoped_ptr<RenderFrameHostImpl> CreateRenderFrameHost(SiteInstance* instance, | 497 scoped_ptr<RenderFrameHostImpl> CreateRenderFrameHost(SiteInstance* instance, |
| 500 int view_routing_id, | 498 int view_routing_id, |
| 501 int frame_routing_id, | 499 int frame_routing_id, |
| 502 int flags); | 500 int flags); |
| 503 | 501 |
| 504 // PlzNavigate | 502 // PlzNavigate |
| 505 // Creates and initializes a speculative RenderFrameHost and/or WebUI for an | 503 // Creates and initializes a speculative RenderFrameHost and/or WebUI for an |
| 506 // ongoing navigation. They might be destroyed and re-created later if the | 504 // ongoing navigation. They might be destroyed and re-created later if the |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 bool should_reuse_web_ui_; | 671 bool should_reuse_web_ui_; |
| 674 | 672 |
| 675 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 673 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 676 | 674 |
| 677 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 675 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 678 }; | 676 }; |
| 679 | 677 |
| 680 } // namespace content | 678 } // namespace content |
| 681 | 679 |
| 682 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 680 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |