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..fec8cdf98a7615046aa7a062910ea8c91d8c15bc 100644 |
| --- a/content/common/navigation_params.h |
| +++ b/content/common/navigation_params.h |
| @@ -11,8 +11,11 @@ |
| #include "base/time/time.h" |
| #include "content/common/content_export.h" |
| #include "content/common/frame_message_enums.h" |
| +#include "content/common/service_worker/service_worker_types.h" |
| #include "content/public/common/page_state.h" |
| #include "content/public/common/referrer.h" |
| +#include "content/public/common/request_context_frame_type.h" |
| +#include "content/public/common/request_context_type.h" |
| #include "ui/base/page_transition_types.h" |
| #include "url/gurl.h" |
| @@ -46,7 +49,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); |
|
michaeln
2015/09/01 01:15:23
browser_initiated_nav_id
|
| ~CommonNavigationParams(); |
| // The URL to navigate to. |
| @@ -89,6 +93,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; |
| }; |
| // Provided by the renderer ---------------------------------------------------- |
| @@ -107,7 +115,13 @@ 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, |
| + FetchRequestMode fetch_request_mode, |
|
nasko
2015/08/20 16:49:50
Can we skip adding some of these? For example, Fet
Fabrice (no longer in Chrome)
2015/08/26 13:23:24
I removed them and DCHEK'd them per clamy's sugges
|
| + FetchCredentialsMode fetch_credentials_mode, |
| + FetchRedirectMode fetch_redirect_mode, |
| + RequestContextType request_context_type, |
|
nasko
2015/08/20 16:49:50
This one can also be only one of two values, right
Fabrice (no longer in Chrome)
2015/08/26 13:23:24
I did some quick and dirty testing, these are the
|
| + RequestContextFrameType frame_type); |
| // The request method: GET, POST, etc. |
| std::string method; |
| @@ -120,6 +134,23 @@ struct CONTENT_EXPORT BeginNavigationParams { |
| // True if the request was user initiated. |
| bool has_user_gesture; |
| + |
| + // True if the ServiceWorker should be skipped. |
|
clamy
2015/08/24 12:27:35
In which cases is skip_service_worker set to true?
Fabrice (no longer in Chrome)
2015/08/26 13:23:24
There are a few cases:
-The request was fallbacked
kinuko
2015/08/27 01:37:44
I think your understanding is correct. Fallback ha
|
| + bool skip_service_worker; |
| + |
| + // The request mode passed to the ServiceWorker. |
| + FetchRequestMode fetch_request_mode; |
| + |
| + // The credentials mode passed to the ServiceWorker. |
| + FetchCredentialsMode fetch_credentials_mode; |
| + |
| + // The redirect mode used in Fetch API. |
| + FetchRedirectMode fetch_redirect_mode; |
| + |
| + // Indicates if the current request is the main frame load, a sub-frame |
| + // load, or a sub objects load. |
| + RequestContextType request_context_type; |
| + RequestContextFrameType frame_type; |
| }; |
| // Provided by the browser ----------------------------------------------------- |