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

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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 // This is a helper function for GetSiteInstanceForNavigation. 422 // This is a helper function for GetSiteInstanceForNavigation.
422 SiteInstance* GetSiteInstanceForURL( 423 SiteInstance* GetSiteInstanceForURL(
423 const GURL& dest_url, 424 const GURL& dest_url,
424 SiteInstance* dest_instance, 425 SiteInstance* dest_instance,
425 ui::PageTransition dest_transition, 426 ui::PageTransition dest_transition,
426 bool dest_is_restore, 427 bool dest_is_restore,
427 bool dest_is_view_source_mode, 428 bool dest_is_view_source_mode,
428 SiteInstance* current_instance, 429 SiteInstance* current_instance,
429 bool force_browsing_instance_swap); 430 bool force_browsing_instance_swap);
430 431
432 // Determines the appropriate url to use as the current url for SiteInstance
433 // selection.
434 const GURL& GetCurrentURLForSiteInstance(
435 SiteInstance* current_instance,
436 NavigationEntry* current_entry);
437
431 // Creates a new RenderFrameHostImpl for the |new_instance| while respecting 438 // Creates a new RenderFrameHostImpl for the |new_instance| while respecting
432 // the opener route if needed and stores it in pending_render_frame_host_. 439 // the opener route if needed and stores it in pending_render_frame_host_.
433 void CreateRenderFrameHostForNewSiteInstance( 440 void CreateRenderFrameHostForNewSiteInstance(
434 SiteInstance* old_instance, 441 SiteInstance* old_instance,
435 SiteInstance* new_instance, 442 SiteInstance* new_instance,
436 bool is_main_frame); 443 bool is_main_frame);
437 444
438 // Creates a RenderFrameHost and corresponding RenderViewHost if necessary. 445 // Creates a RenderFrameHost and corresponding RenderViewHost if necessary.
439 scoped_ptr<RenderFrameHostImpl> CreateRenderFrameHost(SiteInstance* instance, 446 scoped_ptr<RenderFrameHostImpl> CreateRenderFrameHost(SiteInstance* instance,
440 int view_routing_id, 447 int view_routing_id,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 NotificationRegistrar registrar_; 580 NotificationRegistrar registrar_;
574 581
575 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; 582 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_;
576 583
577 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); 584 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager);
578 }; 585 };
579 586
580 } // namespace content 587 } // namespace content
581 588
582 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 589 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698