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

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: Addressed Charlie's comments 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
Index: content/common/navigation_params.h
diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h
index 757d1a7fcc32f93c19ebb7f782badf670381a585..fb2b2168ea5af540e3304688df8f1f5615b5df12 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.
nasko 2015/02/26 17:35:24 nit: s/blink/Blink/? You've used the uppercased ve
clamy 2015/02/27 12:53:59 Done.
+ // 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.

Powered by Google App Engine
This is Rietveld 408576698