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

Issue 9316078: Added daemon process NPAPI. (Closed)

Created:
8 years, 10 months ago by Jamie
Modified:
8 years, 10 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Added daemon process NPAPI. This provides a framework that we can implement per-platform to allow the Me2Me daemon to installed, started and stopped by the web-app. I've gone with a polling-based API for now, as it simplifies some of the logic. We can revisit this if necessary to make it more sophisticated. BUG=None TEST=None until we have some implementations. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=120723

Patch Set 1 #

Patch Set 2 : Removed unused headers. Fixed Windows and Mac builds. #

Total comments: 47

Patch Set 3 : Incorporated reviewer comments. #

Patch Set 4 : Fixed compile error. #

Patch Set 5 : Use string instead of const char* #

Patch Set 6 : More reviewer comments. #

Patch Set 7 : Separated out Start/SetPin and added return codes to Stop and Start. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -31 lines) Patch
A remoting/host/plugin/daemon_controller.h View 1 2 3 4 5 6 1 chunk +74 lines, -0 lines 1 comment Download
A remoting/host/plugin/daemon_controller_linux.cc View 1 2 3 4 5 6 1 chunk +56 lines, -0 lines 0 comments Download
A remoting/host/plugin/daemon_controller_mac.cc View 1 2 3 4 5 6 1 chunk +56 lines, -0 lines 0 comments Download
A remoting/host/plugin/daemon_controller_win.cc View 1 2 3 4 5 6 1 chunk +56 lines, -0 lines 0 comments Download
M remoting/host/plugin/host_script_object.h View 1 2 3 4 5 6 3 chunks +18 lines, -0 lines 0 comments Download
M remoting/host/plugin/host_script_object.cc View 1 2 3 4 5 6 10 chunks +69 lines, -31 lines 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M remoting/webapp/host_plugin_proto.js View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Jamie
8 years, 10 months ago (2012-02-02 23:07:26 UTC) #1
Sergey Ulanov
https://chromiumcodereview.appspot.com/9316078/diff/3002/remoting/host/plugin/daemon_npapi.h File remoting/host/plugin/daemon_npapi.h (right): https://chromiumcodereview.appspot.com/9316078/diff/3002/remoting/host/plugin/daemon_npapi.h#newcode5 remoting/host/plugin/daemon_npapi.h:5: #ifndef REMOTING_DAEMON_NPAPI_H_ nit: REMOTING_HOST_PLUGIN_DAEMONG_NPAPI_H_ https://chromiumcodereview.appspot.com/9316078/diff/3002/remoting/host/plugin/daemon_npapi.h#newcode10 remoting/host/plugin/daemon_npapi.h:10: class DaemonNpapi { ...
8 years, 10 months ago (2012-02-02 23:41:24 UTC) #2
alexeypa (please no reviews)
https://chromiumcodereview.appspot.com/9316078/diff/3002/remoting/host/plugin/daemon_npapi.h File remoting/host/plugin/daemon_npapi.h (right): https://chromiumcodereview.appspot.com/9316078/diff/3002/remoting/host/plugin/daemon_npapi.h#newcode40 remoting/host/plugin/daemon_npapi.h:40: virtual void Start(const char* pin) = 0; nit: typically ...
8 years, 10 months ago (2012-02-03 00:26:05 UTC) #3
Jamie
https://chromiumcodereview.appspot.com/9316078/diff/3002/remoting/host/plugin/daemon_npapi.h File remoting/host/plugin/daemon_npapi.h (right): https://chromiumcodereview.appspot.com/9316078/diff/3002/remoting/host/plugin/daemon_npapi.h#newcode5 remoting/host/plugin/daemon_npapi.h:5: #ifndef REMOTING_DAEMON_NPAPI_H_ On 2012/02/02 23:41:24, sergeyu wrote: > nit: ...
8 years, 10 months ago (2012-02-03 00:47:40 UTC) #4
Sergey Ulanov
https://chromiumcodereview.appspot.com/9316078/diff/3002/remoting/host/plugin/daemon_npapi.h File remoting/host/plugin/daemon_npapi.h (right): https://chromiumcodereview.appspot.com/9316078/diff/3002/remoting/host/plugin/daemon_npapi.h#newcode40 remoting/host/plugin/daemon_npapi.h:40: virtual void Start(const char* pin) = 0; On 2012/02/03 ...
8 years, 10 months ago (2012-02-03 01:08:24 UTC) #5
Wez
LGTM with nits. https://chromiumcodereview.appspot.com/9316078/diff/3002/remoting/host/plugin/daemon_npapi.h File remoting/host/plugin/daemon_npapi.h (right): https://chromiumcodereview.appspot.com/9316078/diff/3002/remoting/host/plugin/daemon_npapi.h#newcode10 remoting/host/plugin/daemon_npapi.h:10: class DaemonNpapi { On 2012/02/02 23:41:24, ...
8 years, 10 months ago (2012-02-03 01:25:36 UTC) #6
Jamie
https://chromiumcodereview.appspot.com/9316078/diff/3002/remoting/host/plugin/daemon_npapi.h File remoting/host/plugin/daemon_npapi.h (right): https://chromiumcodereview.appspot.com/9316078/diff/3002/remoting/host/plugin/daemon_npapi.h#newcode19 remoting/host/plugin/daemon_npapi.h:19: STATE_NOT_INSTALLED = 0, On 2012/02/03 01:25:36, Wez wrote: > ...
8 years, 10 months ago (2012-02-03 01:40:15 UTC) #7
Jamie
Please take another look. Conflating Start with state setters won't work in the long term ...
8 years, 10 months ago (2012-02-06 23:50:53 UTC) #8
Wez
lgtm https://chromiumcodereview.appspot.com/9316078/diff/8001/remoting/host/plugin/daemon_controller.h File remoting/host/plugin/daemon_controller.h (right): https://chromiumcodereview.appspot.com/9316078/diff/8001/remoting/host/plugin/daemon_controller.h#newcode49 remoting/host/plugin/daemon_controller.h:49: // TODO(jamiewalch): More state-setting methods needed here. Sufficient ...
8 years, 10 months ago (2012-02-07 00:39:52 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamiewalch@chromium.org/9316078/8001
8 years, 10 months ago (2012-02-07 01:06:43 UTC) #10
commit-bot: I haz the power
8 years, 10 months ago (2012-02-07 05:35:21 UTC) #11
Change committed as 120723

Powered by Google App Engine
This is Rietveld 408576698