WDYT?
A specific alternative might be to define `FollowRedirectParams` that includes `new_url` + `HttpRequestHeadersUpdateParams`, while I don't have any specific reason to (or not to) do so.
(bot failures are due to recent addition of `FollowRedirect` overrides; I'll rebase/rerun later).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
network::HttpRequestHeadersUpdateParams headers_update_params,Now we pass by value instead of reference. Does that mean we add extra copies?
bool StructTraits<network::mojom::HttpRequestHeadersUpdateParamsDataView,Maybe nice to add unitteest.
struct HttpRequestHeadersUpdateParams {```
// Typemapped to `network::HttpRequestHeadersUpdateParams`.
```
Also, consider using `IFFT` so that we don't forget update them each other?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
network::HttpRequestHeadersUpdateParams headers_update_params,Now we pass by value instead of reference. Does that mean we add extra copies?
No, `HttpRequestHeadersUpdateParams` is passed by move, not copy.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
network::HttpRequestHeadersUpdateParams headers_update_params,Hiroshige HayashizakiNow we pass by value instead of reference. Does that mean we add extra copies?
No, `HttpRequestHeadersUpdateParams` is passed by move, not copy.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
bool StructTraits<network::mojom::HttpRequestHeadersUpdateParamsDataView,Maybe nice to add unitteest.
Created: https://crrev.com/c/7855487
```
// Typemapped to `network::HttpRequestHeadersUpdateParams`.
```Also, consider using `IFFT` so that we don't forget update them each other?
```
// Typemapped to `network::HttpRequestHeadersUpdateParams`.
```
Done.
Also, consider using `IFFT` so that we don't forget update them each other?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
bool StructTraits<network::mojom::HttpRequestHeadersUpdateParamsDataView,Hiroshige HayashizakiMaybe nice to add unitteest.
Created: https://crrev.com/c/7855487
It would be nice to submit the test together with the implementation, ideally factoring out in two CLs: 1. impl + test, 2. other stuff in this CL.
I don't meant to block this CL though.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
bool StructTraits<network::mojom::HttpRequestHeadersUpdateParamsDataView,Hiroshige HayashizakiMaybe nice to add unitteest.
Kenichi IshibashiCreated: https://crrev.com/c/7855487
It would be nice to submit the test together with the implementation, ideally factoring out in two CLs: 1. impl + test, 2. other stuff in this CL.
I don't meant to block this CL though.
Merged https://crrev.com/c/7855487.
What do you mean by "other stuff in this CL"?
Everything related to the `network::mojom::URLLoader::FollowRedirect` change should be committed at once and can't be split.
The other parts of
- Defines `network.mojom.HttpRequestHeadersUpdateParams` mojo struct.
- `services/network/public/mojom/http_request_headers.mojom`
- Maps it to `network::HttpRequestHeadersUpdateParams`.
- `services/network/public/mojom/BUILD.gn`
- `services/network/public/cpp/http_request_headers_mojom_traits.*`
can be split into a preparation CL, but is this what you mean?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |