We'd like to make base::PostTaskWithTraits extensible by //content, so that we can use it to post tasks to browser threads and annotate them with traits that influence task scheduling on sequences. For example:
// Post a network task associated with a specific frame to the browser's UI thread.
base::PostTaskWithTraits(FROM_HERE, {
content::BrowserThread::UI,
content::TaskType::kNetwork,
content::FrameToken(render_frame_host->GetDevToolsFrameToken()),
content::BlocksLoad()}, base::Bind(...));
See design doc: https://docs.google.com/document/d/1SGy9VTXUwyXEX_yBZ0ukFAnS8B0hDeMUJD-1iALaE-Q/edit?usp=sharing
Comment 1 by bugdroid1@chromium.org
, Aug 3