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

Unified Diff: content/common/navigation_params.h

Issue 906283003: PlzNavigate: Support data urls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + change to unit test Created 5 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 757d1a7fcc32f93c19ebb7f782badf670381a585..58e2ca53e2217e3a89561b162e7253c2735fdd75 100644
--- a/content/common/navigation_params.h
+++ b/content/common/navigation_params.h
@@ -38,7 +38,9 @@ struct CONTENT_EXPORT CommonNavigationParams {
FrameMsg_Navigate_Type::Value navigation_type,
bool allow_download,
base::TimeTicks ui_timestamp,
- FrameMsg_UILoadMetricsReportType::Value report_type);
+ FrameMsg_UILoadMetricsReportType::Value report_type,
+ const GURL& base_url_for_data_url,
+ const GURL& history_url_for_data_url);
~CommonNavigationParams();
// The URL to navigate to.
@@ -66,6 +68,14 @@ struct CONTENT_EXPORT CommonNavigationParams {
// The report type to be used when recording the metric using |ui_timestamp|.
FrameMsg_UILoadMetricsReportType::Value report_type;
+
+ // Base URL for use in Blink's SubstituteData.
+ // Is only used with data: URLs.
+ GURL base_url_for_data_url;
+
+ // History URL for use in Blink's SubstituteData.
+ // Is only used with data: URLs.
+ GURL history_url_for_data_url;
};
// PlzNavigate: parameters needed to start a navigation on the IO thread.
« 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