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

Issue 242533005: [NaCl SDK] nacl_io: Add flow control the JavaScript pipes. (Closed)

Created:
6 years, 8 months ago by Sam Clegg
Modified:
6 years, 7 months ago
Reviewers:
binji
CC:
chromium-reviews, binji+watch_chromium.org
Visibility:
Public.

Description

[NaCl SDK] nacl_io: Add flow control the JavaScript pipes. Add unit tests. Split unit tests for jspipe and tty nodes into those that test the internal directly and those that require that higher level ki_ functions withing the test code. R=binji@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272235

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : rebase #

Total comments: 67

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Total comments: 5

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1162 lines, -265 lines) Patch
M native_client_sdk/src/examples/demo/nacl_io/example.js View 1 2 3 4 5 6 7 2 chunks +60 lines, -13 lines 0 comments Download
M native_client_sdk/src/examples/demo/nacl_io/index.html View 1 1 chunk +11 lines, -1 line 0 comments Download
M native_client_sdk/src/examples/demo/nacl_io/nacl_io_demo.h View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M native_client_sdk/src/examples/demo/nacl_io/nacl_io_demo.c View 1 2 3 4 5 6 7 10 chunks +126 lines, -34 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc View 1 chunk +3 lines, -3 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/devfs/jspipe_event_emitter.h View 1 2 3 4 5 6 7 1 chunk +89 lines, -0 lines 0 comments Download
A native_client_sdk/src/libraries/nacl_io/devfs/jspipe_event_emitter.cc View 1 2 3 4 5 6 7 1 chunk +308 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/devfs/jspipe_node.h View 1 2 3 4 5 6 7 1 chunk +45 lines, -8 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/devfs/jspipe_node.cc View 1 2 3 4 5 6 7 1 chunk +65 lines, -65 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/devfs/tty_event_emitter.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/devfs/tty_event_emitter.cc View 1 2 3 4 5 6 1 chunk +7 lines, -6 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/devfs/tty_node.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/event_emitter.h View 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/fifo_char.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/fs_factory.h View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/ioctl.h View 1 2 1 chunk +16 lines, -2 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/library.dsc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/log.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/node.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/pipe/pipe_event_emitter.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/pipe/pipe_event_emitter.cc View 1 2 3 4 5 6 1 chunk +7 lines, -6 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/pipe/pipe_node.h View 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/pipe/pipe_node.cc View 1 2 3 4 5 6 3 chunks +13 lines, -6 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/typed_fs_factory.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M native_client_sdk/src/libraries/ppapi_simple/ps_instance.h View 1 2 3 4 5 6 3 chunks +5 lines, -4 lines 0 comments Download
M native_client_sdk/src/libraries/ppapi_simple/ps_instance.cc View 1 2 3 4 5 8 chunks +69 lines, -21 lines 0 comments Download
M native_client_sdk/src/resources/Makefile.example.template View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M native_client_sdk/src/resources/Makefile.library.template View 1 chunk +4 lines, -0 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/event_test.cc View 1 2 3 4 5 6 1 chunk +6 lines, -2 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_var_manager.cc View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/jspipe_test.cc View 1 2 3 4 5 6 7 4 chunks +295 lines, -79 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Sam Clegg
Sending this out for initial feedback. I advice looking at the example and tests first. ...
6 years, 7 months ago (2014-04-29 22:35:11 UTC) #1
Sam Clegg
6 years, 7 months ago (2014-04-30 21:17:39 UTC) #2
Sam Clegg
ptal
6 years, 7 months ago (2014-05-01 18:48:38 UTC) #3
binji
lgtm. I think the message format could be better, but in general this looks fine. ...
6 years, 7 months ago (2014-05-01 20:22:30 UTC) #4
Sam Clegg
Fixed all the nits, still need to potentially re-think the message format stuff. PTAL. https://codereview.chromium.org/242533005/diff/100001/native_client_sdk/src/examples/demo/nacl_io/example.js ...
6 years, 7 months ago (2014-05-01 22:16:54 UTC) #5
Sam Clegg
Updated to new message format. Still want to add an example of piping all the ...
6 years, 7 months ago (2014-05-07 23:30:36 UTC) #6
binji
lgtm https://codereview.chromium.org/242533005/diff/160001/native_client_sdk/src/examples/demo/nacl_io/example.js File native_client_sdk/src/examples/demo/nacl_io/example.js (right): https://codereview.chromium.org/242533005/diff/160001/native_client_sdk/src/examples/demo/nacl_io/example.js#newcode319 native_client_sdk/src/examples/demo/nacl_io/example.js:319: var pipeName = data['pipe'] you can just do ...
6 years, 7 months ago (2014-05-08 18:18:33 UTC) #7
Sam Clegg
6 years, 7 months ago (2014-05-22 18:10:20 UTC) #8
Message was sent while issue was closed.
Committed patchset #12 manually as r272235 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698