<Probably a small target audience, but decided to broadcast anyway>
To help solve
crbug.com/55551 I need a way to extract the POST data identifier for the top-level frame. The full POST data is not needed.
It seems like there are three approaches for this:
a) Unpack the existing content_state_ structure in the NavigationEntryImpl. Upside: this should introduce minimal changes to the codebase, provides the option to eventually crack out the POST body, and reduces redundant information. Downside: it's gross, and introduces webkit_glue dependencies into the browser-side portion of content. Up until now, that's been treated as an opaque string browser-side.
b) Add an int64 UploadData identifier to NavigationEntryImpl and ViewHostMsg_FrameNavigate_Params. Upside: Pretty clean at call sites that care. Downside: redundant information is stored, all generators of ViewHostMsg_FrameNavigate_Params structures need to set two variables for the same thing.
c) Add an IPC from browser->render where the browser can query about the UploadData identifier for a frame within a RenderView [and possibly just for the top-level RenderView only]. Upside: ?. Downside: Extra latency, extra complexity.
I have a local change which does b), but want to get some feedback before making it pretty and sending out for review.