Chromium Code Reviews| Index: content/common/navigation_params.h |
| diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h |
| index 414319d73e384c9c27d28eea402f62596c0e3b65..1d7770c543da06b186b512e11de7e352e7d5c289 100644 |
| --- a/content/common/navigation_params.h |
| +++ b/content/common/navigation_params.h |
| @@ -59,7 +59,8 @@ struct CONTENT_EXPORT CommonNavigationParams { |
| const GURL& base_url_for_data_url, |
| const GURL& history_url_for_data_url, |
| LoFiState lofi_state, |
| - const base::TimeTicks& navigation_start); |
| + const base::TimeTicks& navigation_start, |
| + bool is_post); |
|
Charlie Reis
2016/02/17 05:55:28
I would think that moving this to CommonNavParams
clamy
2016/02/17 12:39:39
It is used both at request time in the browser, an
Charlie Reis
2016/02/17 21:52:06
Ah, I'm missing the second part. Where do we use
clamy
2016/02/22 12:48:36
Yes it seems the comment above CommonNavParams is
Charlie Reis
2016/02/27 00:21:49
It's fine if this isn't used at commit time, but t
clamy
2016/02/29 10:54:02
That's indeed the case.
|
| ~CommonNavigationParams(); |
| // The URL to navigate to. |
| @@ -113,6 +114,9 @@ struct CONTENT_EXPORT CommonNavigationParams { |
| // PlzNavigate: For renderer initiated navigations, this will be set on the |
| // renderer side and sent with FrameHostMsg_BeginNavigation. |
| base::TimeTicks navigation_start; |
| + |
| + // Whether the navigation is a POST request (as opposed to a GET). |
| + bool is_post; |
| }; |
| // Provided by the renderer ---------------------------------------------------- |
| @@ -128,16 +132,12 @@ struct CONTENT_EXPORT BeginNavigationParams { |
| // TODO(clamy): See if it is possible to reuse this in |
| // ResourceMsg_Request_Params. |
| BeginNavigationParams(); |
| - BeginNavigationParams(std::string method, |
| - std::string headers, |
| + BeginNavigationParams(std::string headers, |
| int load_flags, |
| bool has_user_gesture, |
| bool skip_service_worker, |
| RequestContextType request_context_type); |
| - // The request method: GET, POST, etc. |
|
Charlie Reis
2016/02/17 05:55:28
Again, I wonder about whether the "etc" was intent
clamy
2016/02/17 12:39:39
Changed the boolean to a string.
|
| - std::string method; |
| - |
| // Additional HTTP request headers. |
| std::string headers; |
| @@ -171,7 +171,6 @@ struct CONTENT_EXPORT BeginNavigationParams { |
| struct CONTENT_EXPORT StartNavigationParams { |
| StartNavigationParams(); |
| StartNavigationParams( |
| - bool is_post, |
| const std::string& extra_headers, |
| const std::vector<unsigned char>& browser_initiated_post_data, |
| #if defined(OS_ANDROID) |
| @@ -181,9 +180,6 @@ struct CONTENT_EXPORT StartNavigationParams { |
| int transferred_request_request_id); |
| ~StartNavigationParams(); |
| - // Whether the navigation is a POST request (as opposed to a GET). |
| - bool is_post; |
| - |
| // Extra headers (separated by \n) to send during the request. |
| std::string extra_headers; |