Chromium Code Reviews| Index: content/common/navigation_params.h |
| diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h |
| index 37b1af035401ee8e9ab394831888b68c6519e4e9..74b16e4aabb14d61221a95056a05c6d2091dc47a 100644 |
| --- a/content/common/navigation_params.h |
| +++ b/content/common/navigation_params.h |
| @@ -13,6 +13,7 @@ |
| #include "content/common/frame_message_enums.h" |
| #include "content/public/common/page_state.h" |
| #include "content/public/common/referrer.h" |
| +#include "content/public/common/request_context_type.h" |
| #include "ui/base/page_transition_types.h" |
| #include "url/gurl.h" |
| @@ -46,7 +47,8 @@ struct CONTENT_EXPORT CommonNavigationParams { |
| base::TimeTicks ui_timestamp, |
| FrameMsg_UILoadMetricsReportType::Value report_type, |
| const GURL& base_url_for_data_url, |
| - const GURL& history_url_for_data_url); |
| + const GURL& history_url_for_data_url, |
| + int service_worker_provider_id); |
| ~CommonNavigationParams(); |
| // The URL to navigate to. |
| @@ -89,6 +91,10 @@ struct CONTENT_EXPORT CommonNavigationParams { |
| // History URL for use in Blink's SubstituteData. |
| // Is only used with data: URLs. |
| GURL history_url_for_data_url; |
| + |
| + // PlzNavigate |
| + // The ServiceWorker provider ID associated with the navigation. |
| + int service_worker_provider_id; |
|
michaeln
2015/09/18 23:03:56
This needs to be added to the IPC traits for this
Fabrice (no longer in Chrome)
2015/09/30 17:32:07
Done.
|
| }; |
| // Provided by the renderer ---------------------------------------------------- |
| @@ -107,7 +113,9 @@ struct CONTENT_EXPORT BeginNavigationParams { |
| BeginNavigationParams(std::string method, |
| std::string headers, |
| int load_flags, |
| - bool has_user_gesture); |
| + bool has_user_gesture, |
| + bool skip_service_worker, |
| + RequestContextType request_context_type); |
| // The request method: GET, POST, etc. |
| std::string method; |
| @@ -120,6 +128,12 @@ struct CONTENT_EXPORT BeginNavigationParams { |
| // True if the request was user initiated. |
| bool has_user_gesture; |
| + |
| + // True if the ServiceWorker should be skipped. |
| + bool skip_service_worker; |
| + |
| + // Indicates the request context type. |
| + RequestContextType request_context_type; |
| }; |
| // Provided by the browser ----------------------------------------------------- |