Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(915)

Issue 103693006: Me2me Native Messaging host on Windows: restructure NativeMessagingHost and NativeMessagingChannel.… (Closed)

Created:
7 years ago by weitao
Modified:
7 years ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, weitaosu+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Me2me 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -197 lines) Patch
M remoting/host/it2me/it2me_native_messaging_host.h View 1 3 chunks +9 lines, -18 lines 0 comments Download
M remoting/host/it2me/it2me_native_messaging_host.cc View 1 8 chunks +36 lines, -20 lines 0 comments Download
M remoting/host/it2me/it2me_native_messaging_host_main.cc View 1 1 chunk +6 lines, -7 lines 0 comments Download
M remoting/host/it2me/it2me_native_messaging_host_unittest.cc View 1 6 chunks +20 lines, -23 lines 1 comment Download
M remoting/host/native_messaging/native_messaging_channel.h View 1 2 chunks +9 lines, -30 lines 0 comments Download
M remoting/host/native_messaging/native_messaging_channel.cc View 1 2 chunks +6 lines, -7 lines 0 comments Download
M remoting/host/setup/me2me_native_messaging_host.h View 1 3 chunks +7 lines, -8 lines 0 comments Download
M remoting/host/setup/me2me_native_messaging_host.cc View 1 17 chunks +70 lines, -18 lines 1 comment Download
M remoting/host/setup/me2me_native_messaging_host_main.cc View 1 1 chunk +8 lines, -6 lines 0 comments Download
M remoting/host/setup/me2me_native_messaging_host_unittest.cc View 1 14 chunks +103 lines, -60 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
weitao
7 years ago (2013-12-12 18:42:35 UTC) #1
Sergey Ulanov
https://codereview.chromium.org/103693006/diff/1/remoting/host/it2me/it2me_native_messaging_host.cc File remoting/host/it2me/it2me_native_messaging_host.cc (right): https://codereview.chromium.org/103693006/diff/1/remoting/host/it2me/it2me_native_messaging_host.cc#newcode293 remoting/host/it2me/it2me_native_messaging_host.cc:293: void It2MeNativeMessagingHost::ShutDown() { Do you really need this method? ...
7 years ago (2013-12-12 19:10:27 UTC) #2
weitao
PTAL. https://codereview.chromium.org/103693006/diff/1/remoting/host/it2me/it2me_native_messaging_host.cc File remoting/host/it2me/it2me_native_messaging_host.cc (right): https://codereview.chromium.org/103693006/diff/1/remoting/host/it2me/it2me_native_messaging_host.cc#newcode293 remoting/host/it2me/it2me_native_messaging_host.cc:293: void It2MeNativeMessagingHost::ShutDown() { On 2013/12/12 19:10:28, Sergey Ulanov ...
7 years ago (2013-12-12 23:33:48 UTC) #3
Sergey Ulanov
lgtm https://codereview.chromium.org/103693006/diff/40001/remoting/host/it2me/it2me_native_messaging_host_unittest.cc File remoting/host/it2me/it2me_native_messaging_host_unittest.cc (right): https://codereview.chromium.org/103693006/diff/40001/remoting/host/it2me/it2me_native_messaging_host_unittest.cc#newcode429 remoting/host/it2me/it2me_native_messaging_host_unittest.cc:429: ASSERT_TRUE(MakePipe(&input_read_handle, &input_write_handle_)); FWIW, not required for this CL: ...
7 years ago (2013-12-12 23:55:15 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/weitaosu@chromium.org/103693006/40001
7 years ago (2013-12-13 00:30:19 UTC) #5
commit-bot: I haz the power
7 years ago (2013-12-13 09:15:37 UTC) #6
Message was sent while issue was closed.
Change committed as 240565

Powered by Google App Engine
This is Rietveld 408576698