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

Unified Diff: content/common/navigation_params.h

Issue 2653953005: PlzNavigate: transmit redirect info to the renderer side (Closed)
Patch Set: Rebase + addressed comments Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/navigation_params.h
diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h
index c47da6b89c797ca8ceb40b93f578effdf10bbe92..105130740e309c150cf97dfef2ef918ad4a14e2d 100644
--- a/content/common/navigation_params.h
+++ b/content/common/navigation_params.h
@@ -22,6 +22,7 @@
#include "content/public/common/referrer.h"
#include "content/public/common/request_context_type.h"
#include "content/public/common/resource_response.h"
+#include "net/url_request/redirect_info.h"
#include "third_party/WebKit/public/platform/WebMixedContentContextType.h"
#include "ui/base/page_transition_types.h"
#include "url/gurl.h"
@@ -228,6 +229,8 @@ struct CONTENT_EXPORT RequestNavigationParams {
RequestNavigationParams();
RequestNavigationParams(bool is_overriding_user_agent,
const std::vector<GURL>& redirects,
+ const GURL& original_url,
+ const std::string& original_method,
bool can_load_local_resources,
const PageState& page_state,
int nav_entry_id,
@@ -254,6 +257,15 @@ struct CONTENT_EXPORT RequestNavigationParams {
// The ResourceResponseInfos received during redirects.
std::vector<ResourceResponseInfo> redirect_response;
+ // PlzNavigate
+ // The RedirectInfos received during redirects.
+ std::vector<net::RedirectInfo> redirect_infos;
+
+ // PlzNavigate
+ // The original URL & method for this navigation.
+ GURL original_url;
+ std::string original_method;
+
// Whether or not this url should be allowed to access local file://
// resources.
bool can_load_local_resources;
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698