Chromium Code Reviews
Description[Chromoting] Introducing refcount-based life time management of the message loops in the service (daemon) and me2me host (network) processes.
This CL introduces AutoMessageLoop wrapper that provides control over life time of a message loop via scoped_refptr references. This scheme is useful in the cases when shutdown code has to run on a particular thread or when the OS requires resources (such as windows) to be freed before exiting a message loop.
The CL switches threads, owned by remoting::HostService, remoting::HostProcess and remoting::ChromotingHostContext, to refcount-based lifetime management. This change required updating tear-down sequences in remoting_me2me_host and the host plugin code.
BUG=134694
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154827
Patch Set 1 #Patch Set 2 : - #Patch Set 3 : Use AutoThread in ChromotingHostContext and the me2me host. #Patch Set 4 : Destructors of ref-counted objects should not be public. #
Total comments: 12
Patch Set 5 : CR feedback #
Total comments: 30
Patch Set 6 : CR feedback. #Patch Set 7 : Renamed AutoMessageLoop -> AutoTaskRunner #Patch Set 8 : Bringing back the parent link. #
Total comments: 20
Patch Set 9 : CR feedback. #
Total comments: 22
Patch Set 10 : CR feedback and a unit test for AutoThreadTaskRunner. #
Total comments: 14
Patch Set 11 : rebased #Messages
Total messages: 24 (0 generated)
|