Implement the It2Me native messaging host.
commit8e022325321033975ca84d8f776e144936d44587
authorweitaosu@chromium.org <weitaosu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 28 Nov 2013 03:49:06 +0000 (28 03:49 +0000)
committerweitaosu@chromium.org <weitaosu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 28 Nov 2013 03:49:06 +0000 (28 03:49 +0000)
treeed7358b7bbafa2cdfde70bbf374bc54a0be46885
parent35be34440dfd03cd5242f1484fbb0ff047541032
Implement the It2Me native messaging host.

1. Implemented It2MeNativeMessagingHost and its unit test.
2. It2MeHost now stores only a raw pointer to the host context object whose lifetime is managed by the creator of the it2me host (NPAPI plugin or it2me native messaging host).
3. The native messaging channel now stores the send_message callback instead of getting it from the caller every time a message is received.
4. The native messaging channel no longer tracks the number of pending requests.

BUG=309844

Review URL: https://codereview.chromium.org/61973004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237665 0039d316-1c4b-4281-b951-d872f2087c98
14 files changed:
remoting/host/it2me/it2me_host.cc
remoting/host/it2me/it2me_host.h
remoting/host/it2me/it2me_native_messaging_host.cc [new file with mode: 0644]
remoting/host/it2me/it2me_native_messaging_host.h [new file with mode: 0644]
remoting/host/it2me/it2me_native_messaging_host_main.cc [new file with mode: 0644]
remoting/host/it2me/it2me_native_messaging_host_unittest.cc [new file with mode: 0644]
remoting/host/native_messaging/native_messaging_channel.cc
remoting/host/native_messaging/native_messaging_channel.h
remoting/host/plugin/host_script_object.cc
remoting/host/plugin/host_script_object.h
remoting/host/setup/me2me_native_messaging_host.cc
remoting/host/setup/me2me_native_messaging_host.h
remoting/host/setup/me2me_native_messaging_host_unittest.cc
remoting/remoting.gyp