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

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

Issue 616133002: Make RenderFrame(Host) own a RenderWidget(Host). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-applying same patch Created 5 years, 11 months 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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698