Chromium Code Reviews
DescriptionAdd WorkerPool::PostTaskAndReply and use in DHCP code.
This factors out the PostTaskAndReply implementation out of MessageLoopProxy so that it can be used for any destination thread accessible via a PostTask-like interface, and uses that code from both MessageLoopProxy and WorkerPool.
The DhcpProxyScriptFetcherWin and DhcpProxyScriptAdapterFetcher classes were both using a PostTaskAndReply-like mechanism with a WorkerPool thread, and on inspection it looks like there are several places in net/ where this is done, and this motivated the larger change (vs. patch set 1 which was a mechanical switch to base::Bind from NewRunnableMethod).
BUG=97516
TEST=net_unittests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105512
Patch Set 1 #Patch Set 2 : Refactor PostTaskAndReply for reuse in WorkerPool, and switch to that in the DHCP classes. #Patch Set 3 : Naming and comment fixes based on self-review. #
Total comments: 10
Patch Set 4 : Addressing review comments. Fixing flakiness in reuse test. #
Total comments: 7
Patch Set 5 : Addressing review comments. Merging to lkgr. #Patch Set 6 : Merge to lkgr #
Total comments: 11
Patch Set 7 : Address review comments. Fix compile issue after merge to lkgr. #
Total comments: 4
Patch Set 8 : Mark private #
Messages
Total messages: 17 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||