Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: content/browser/frame_host/render_frame_host_manager.h

Issue 600553003: Enable swapping a frame back in to its parent process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remoteToLocal
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // automatically called from LoadURL. |for_main_frame_navigation| indicates 116 // automatically called from LoadURL. |for_main_frame_navigation| indicates
117 // whether this RenderViewHost is used to render a top-level frame, so the 117 // whether this RenderViewHost is used to render a top-level frame, so the
118 // appropriate RenderWidgetHostView type is used. 118 // appropriate RenderWidgetHostView type is used.
119 virtual bool CreateRenderViewForRenderManager( 119 virtual bool CreateRenderViewForRenderManager(
120 RenderViewHost* render_view_host, 120 RenderViewHost* render_view_host,
121 int opener_route_id, 121 int opener_route_id,
122 int proxy_routing_id, 122 int proxy_routing_id,
123 bool for_main_frame_navigation) = 0; 123 bool for_main_frame_navigation) = 0;
124 virtual bool CreateRenderFrameForRenderManager( 124 virtual bool CreateRenderFrameForRenderManager(
125 RenderFrameHost* render_frame_host, 125 RenderFrameHost* render_frame_host,
126 int parent_routing_id) = 0; 126 int parent_routing_id,
127 int proxy_routing_id) = 0;
127 virtual void BeforeUnloadFiredFromRenderManager( 128 virtual void BeforeUnloadFiredFromRenderManager(
128 bool proceed, const base::TimeTicks& proceed_time, 129 bool proceed, const base::TimeTicks& proceed_time,
129 bool* proceed_to_fire_unload) = 0; 130 bool* proceed_to_fire_unload) = 0;
130 virtual void RenderProcessGoneFromRenderManager( 131 virtual void RenderProcessGoneFromRenderManager(
131 RenderViewHost* render_view_host) = 0; 132 RenderViewHost* render_view_host) = 0;
132 virtual void UpdateRenderViewSizeForRenderManager() = 0; 133 virtual void UpdateRenderViewSizeForRenderManager() = 0;
133 virtual void CancelModalDialogsForRenderManager() = 0; 134 virtual void CancelModalDialogsForRenderManager() = 0;
134 virtual void NotifySwappedFromRenderManager(RenderFrameHost* old_host, 135 virtual void NotifySwappedFromRenderManager(RenderFrameHost* old_host,
135 RenderFrameHost* new_host, 136 RenderFrameHost* new_host,
136 bool is_main_frame) = 0; 137 bool is_main_frame) = 0;
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 // This is a helper function for GetSiteInstanceForNavigation. 425 // This is a helper function for GetSiteInstanceForNavigation.
425 SiteInstance* GetSiteInstanceForURL( 426 SiteInstance* GetSiteInstanceForURL(
426 const GURL& dest_url, 427 const GURL& dest_url,
427 SiteInstance* dest_instance, 428 SiteInstance* dest_instance,
428 ui::PageTransition dest_transition, 429 ui::PageTransition dest_transition,
429 bool dest_is_restore, 430 bool dest_is_restore,
430 bool dest_is_view_source_mode, 431 bool dest_is_view_source_mode,
431 SiteInstance* current_instance, 432 SiteInstance* current_instance,
432 bool force_browsing_instance_swap); 433 bool force_browsing_instance_swap);
433 434
435 // Determines the appropriate url to use as the current url for SiteInstance
436 // selection.
437 const GURL& GetCurrentURLForSiteInstance(
438 SiteInstance* current_instance,
439 NavigationEntry* current_entry);
440
434 // Creates a new RenderFrameHostImpl for the |new_instance| while respecting 441 // Creates a new RenderFrameHostImpl for the |new_instance| while respecting
435 // the opener route if needed and stores it in pending_render_frame_host_. 442 // the opener route if needed and stores it in pending_render_frame_host_.
436 void CreateRenderFrameHostForNewSiteInstance( 443 void CreateRenderFrameHostForNewSiteInstance(
437 SiteInstance* old_instance, 444 SiteInstance* old_instance,
438 SiteInstance* new_instance, 445 SiteInstance* new_instance,
439 bool is_main_frame); 446 bool is_main_frame);
440 447
441 // Creates a RenderFrameHost and corresponding RenderViewHost if necessary. 448 // Creates a RenderFrameHost and corresponding RenderViewHost if necessary.
442 scoped_ptr<RenderFrameHostImpl> CreateRenderFrameHost(SiteInstance* instance, 449 scoped_ptr<RenderFrameHostImpl> CreateRenderFrameHost(SiteInstance* instance,
443 int view_routing_id, 450 int view_routing_id,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 NotificationRegistrar registrar_; 583 NotificationRegistrar registrar_;
577 584
578 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; 585 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_;
579 586
580 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); 587 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager);
581 }; 588 };
582 589
583 } // namespace content 590 } // namespace content
584 591
585 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 592 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/frame_host/render_frame_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698