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

Unified Diff: native_client_sdk/src/libraries/nacl_io/pipe/pipe_event_emitter.h

Issue 242533005: [NaCl SDK] nacl_io: Add flow control the JavaScript pipes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: native_client_sdk/src/libraries/nacl_io/pipe/pipe_event_emitter.h
diff --git a/native_client_sdk/src/libraries/nacl_io/pipe/pipe_event_emitter.h b/native_client_sdk/src/libraries/nacl_io/pipe/pipe_event_emitter.h
index a8dafd216bd83226b53cb2342d2a8c9d402590d7..66d091e202778cb5f7c92df285558747c83cdf1c 100644
--- a/native_client_sdk/src/libraries/nacl_io/pipe/pipe_event_emitter.h
+++ b/native_client_sdk/src/libraries/nacl_io/pipe/pipe_event_emitter.h
@@ -24,8 +24,8 @@ class PipeEventEmitter : public StreamEventEmitter {
public:
PipeEventEmitter(size_t size);
- size_t Read_Locked(char* data, size_t len);
- size_t Write_Locked(const char* data, size_t len);
+ Error Read_Locked(char* data, size_t len, int* out_bytes);
+ Error Write_Locked(const char* data, size_t len, int* out_bytes);
protected:
virtual FIFOChar* in_fifo() { return &fifo_; }
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/node.h ('k') | native_client_sdk/src/libraries/nacl_io/pipe/pipe_event_emitter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698