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..ac3cea1281388ed84c012da3741d8cc805ad7663 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" |
| @@ -107,7 +108,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 +123,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 ----------------------------------------------------- |
| @@ -191,7 +200,8 @@ struct CONTENT_EXPORT RequestNavigationParams { |
| int pending_history_list_offset, |
| int current_history_list_offset, |
| int current_history_list_length, |
| - bool should_clear_history_list); |
| + bool should_clear_history_list, |
| + int service_worker_provider_id); |
| ~RequestNavigationParams(); |
| // Whether or not the user agent override string should be used. |
| @@ -257,6 +267,10 @@ struct CONTENT_EXPORT RequestNavigationParams { |
| // needs to notify the browser that the clearing was succesful when the |
| // navigation commits. |
| bool should_clear_history_list; |
| + |
| + // PlzNavigate |
| + // SWProvider ID for navigations. |
|
clamy
2015/10/01 12:41:27
Use the full class name.
Fabrice (no longer in Chrome)
2015/10/01 18:29:56
Done.
|
| + int service_worker_provider_id; |
| }; |
| // Helper struct keeping track in one place of all the parameters the browser |