forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deduplicating code performing WebHTTPBody::Element conversions.
Before this CL, there were 2 separate structs in //content layer holding essentially the same information about parts of http body: ResourceRequestBody::Element and ExplodedHttpBodyElement. To deal with 2 separate structs, recent CLs had to introduce duplicated, copy & pasted code that performed conversions between WebHTTPBody::Element from the Blink layer and the 2 structs in the //content layer. Examples: 1. https://crrev.com/1956383003: 1.a. AddHTTPBodyToRequest in //content/renderer/render_frame_impl.cc duplicated code from //content/renderer/history_serialization.cc 2. https://crrev.com/1907443006: 2.a. Almost exactly the same as above, AddHTTPBodyToRequest in //content/renderer/render_frame_impl.cc duplicated code from //content/renderer/history_serialization.cc 2.b. ResourceRequestBody::AppendExplodedHTTPBodyElement in //content/common/resource_request_body.cc was duplicating The current CL removes the duplicated code by making ExplodedHttpBodyElement a type alias for ResourceRequestBody::Element and removing code that dealt with the old ExplodedHttpBodyElement struct. BUG=582211 Review-Url: https://codereview.chromium.org/1987053002 Cr-Commit-Position: refs/heads/master@{#395461}
- Loading branch information
1 parent
9d6cc87
commit 2d0c9ae
Showing
11 changed files
with
197 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.