DescriptionMe2me Native Messaging host on Windows: restructure NativeMessagingHost and NativeMessagingChannel.
1. Reverse the ownership relation between NativeMessagingHost and NativeMessagingChannel.
a. The host now owns the channel. This gets us ready for the next change in which the host will own an addition channel to communicate with the elevated host. I believe the code is also simpler and cleaner after this change.
b. Removed NativeMessagingChannel::Delegate.
c. The host object, instead of the host process's main method, is now responsible for setting up and starting the channel.
2. Reimplement the threading logic of and re-enable the NativeMessagingHost unit tests.
3. Add ThreadChecker asserts in NativeMessagingHost methods.
BUG=325567, 323306
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240565
Patch Set 1 #
Total comments: 8
Patch Set 2 : Addressing Sergey's CR feedback. #Patch Set 3 : #
Total comments: 2
Messages
Total messages: 6 (0 generated)
|