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. |
493 int CreateOpenerRenderViewsIfNeeded(SiteInstance* old_instance, | 494 int CreateOpenerRenderViewsIfNeeded(SiteInstance* old_instance, |
494 SiteInstance* new_instance); | 495 SiteInstance* new_instance, |
| 496 int* create_render_frame_flags); |
495 | 497 |
496 // Creates a RenderFrameHost and corresponding RenderViewHost if necessary. | 498 // Creates a RenderFrameHost and corresponding RenderViewHost if necessary. |
497 scoped_ptr<RenderFrameHostImpl> CreateRenderFrameHost(SiteInstance* instance, | 499 scoped_ptr<RenderFrameHostImpl> CreateRenderFrameHost(SiteInstance* instance, |
498 int view_routing_id, | 500 int view_routing_id, |
499 int frame_routing_id, | 501 int frame_routing_id, |
500 int flags); | 502 int flags); |
501 | 503 |
502 // PlzNavigate | 504 // PlzNavigate |
503 // Creates and initializes a speculative RenderFrameHost and/or WebUI for an | 505 // Creates and initializes a speculative RenderFrameHost and/or WebUI for an |
504 // ongoing navigation. They might be destroyed and re-created later if the | 506 // 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... |
671 bool should_reuse_web_ui_; | 673 bool should_reuse_web_ui_; |
672 | 674 |
673 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 675 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
674 | 676 |
675 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 677 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
676 }; | 678 }; |
677 | 679 |
678 } // namespace content | 680 } // namespace content |
679 | 681 |
680 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 682 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
OLD | NEW |