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

Unified Diff: content/browser/frame_host/navigation_request.h

Issue 2567253005: PlzNavigate: set browser_initiated based on the NavigationEntry (Closed)
Patch Set: Rebase + addressed comments Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigation_request.h
diff --git a/content/browser/frame_host/navigation_request.h b/content/browser/frame_host/navigation_request.h
index 4dca8882a7390b1b3eda190bc14b10b3b42409e0..d5c7f080d44737751fcd98fe12806c5697fb53e0 100644
--- a/content/browser/frame_host/navigation_request.h
+++ b/content/browser/frame_host/navigation_request.h
@@ -130,6 +130,8 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
bool browser_initiated() const { return browser_initiated_ ; }
+ bool may_transfer() const { return may_transfer_; }
+
void SetWaitingForRendererResponse() {
DCHECK(state_ == NOT_STARTED);
state_ = WAITING_FOR_RENDERER_RESPONSE;
@@ -169,6 +171,7 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
const BeginNavigationParams& begin_params,
const RequestNavigationParams& request_params,
bool browser_initiated,
+ bool may_transfer,
const FrameNavigationEntry* frame_navigation_entry,
const NavigationEntryImpl* navitation_entry);
@@ -229,6 +232,15 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
// The type of SiteInstance associated with this navigation.
AssociatedSiteInstanceType associated_site_instance_type_;
+ // Whether the request may be transferred to a different process upon commit.
+ // True for browser-initiated navigations and renderer-inititated navigations
+ // started via the OpenURL path.
+ // Note: the RenderFrameHostManager may still decide to have the navigation
+ // commit in a different renderer process if it detects that a renderer
+ // transfer is needed. This is the case in particular when --site-per-process
+ // is enabled.
+ bool may_transfer_;
+
std::unique_ptr<NavigationHandleImpl> navigation_handle_;
// Holds the ResourceResponse and the StreamHandle for the navigation while
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698