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

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

Issue 2954623003: PlzNavigate: implement REUSE_COMMITTED_OR_PENDING_SITE for redirects (Closed)
Patch Set: Addressed Charlie's comments Created 3 years, 5 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <list> 10 #include <list>
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 498
499 void OnSetHasReceivedUserGesture(); 499 void OnSetHasReceivedUserGesture();
500 500
501 // Sets up the necessary state for a new RenderViewHost. If |proxy| is not 501 // Sets up the necessary state for a new RenderViewHost. If |proxy| is not
502 // null, it creates a RenderFrameProxy in the target renderer process which is 502 // null, it creates a RenderFrameProxy in the target renderer process which is
503 // used to route IPC messages when in swapped out state. Returns early if the 503 // used to route IPC messages when in swapped out state. Returns early if the
504 // RenderViewHost has already been initialized for another RenderFrameHost. 504 // RenderViewHost has already been initialized for another RenderFrameHost.
505 bool InitRenderView(RenderViewHostImpl* render_view_host, 505 bool InitRenderView(RenderViewHostImpl* render_view_host,
506 RenderFrameProxyHost* proxy); 506 RenderFrameProxyHost* proxy);
507 507
508 // Returns the SiteInstance that should be used to host the navigation handled
509 // by |navigation_request|.
510 // Note: the SiteInstance returned by this function may not have an
511 // initialized RenderProcessHost. It will only be initialized when
512 // GetProcess() is called on the SiteInstance. In particular, calling this
513 // function will never lead to a process being created for the navigation.
514 scoped_refptr<SiteInstance> GetSiteInstanceForNavigationRequest(
515 const NavigationRequest& navigation_request);
516
508 private: 517 private:
509 friend class NavigatorTestWithBrowserSideNavigation; 518 friend class NavigatorTestWithBrowserSideNavigation;
510 friend class RenderFrameHostManagerTest; 519 friend class RenderFrameHostManagerTest;
511 friend class RenderFrameHostTester; 520 friend class RenderFrameHostTester;
512 friend class TestWebContents; 521 friend class TestWebContents;
513 522
514 enum class SiteInstanceRelation { 523 enum class SiteInstanceRelation {
515 // A SiteInstance in a different browsing instance from the current. 524 // A SiteInstance in a different browsing instance from the current.
516 UNRELATED, 525 UNRELATED,
517 // A SiteInstance in the same browsing instance as the current. 526 // A SiteInstance in the same browsing instance as the current.
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; 806 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_;
798 807
799 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; 808 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_;
800 809
801 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); 810 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager);
802 }; 811 };
803 812
804 } // namespace content 813 } // namespace content
805 814
806 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ 815 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_request.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