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

Unified Diff: native_client_sdk/src/libraries/ppapi_simple/ps_instance.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/ppapi_simple/ps_instance.h
diff --git a/native_client_sdk/src/libraries/ppapi_simple/ps_instance.h b/native_client_sdk/src/libraries/ppapi_simple/ps_instance.h
index 48908b0b40b65b83e3bcc9b1f27ce80927427329..faac93b691d8bb163b5406cb78927514b8604091 100644
--- a/native_client_sdk/src/libraries/ppapi_simple/ps_instance.h
+++ b/native_client_sdk/src/libraries/ppapi_simple/ps_instance.h
@@ -154,11 +154,12 @@ class PSInstance : public pp::Instance, pp::MouseLock, pp::Graphics3DClient {
// Called by Init to processes default and embed tag arguments prior to
// launching the 'ppapi_main' thread.
virtual bool ProcessProperties();
+
private:
static void* MainThreadThunk(void *start_info);
ssize_t TtyOutputHandler(const char* buf, size_t count);
void MessageHandlerExit(const pp::Var& message);
- void MessageHandlerInput(const pp::Var& message);
+ void MessageHandlerInput(const pp::Var& key, const pp::Var& message);
void MessageHandlerResize(const pp::Var& message);
void HandleResize(int width, int height);
@@ -169,13 +170,13 @@ class PSInstance : public pp::Instance, pp::MouseLock, pp::Graphics3DClient {
/// Handle exit confirmation message from JavaScript.
static void MessageHandlerExitStatic(const pp::Var& key,
- const pp::Var& value,
+ const pp::Var& message,
void* user_data);
/// Handle input message from JavaScript. The value is
/// expected to be of type string.
static void MessageHandlerInputStatic(const pp::Var& key,
- const pp::Var& value,
+ const pp::Var& message,
void* user_data);
@@ -183,7 +184,7 @@ class PSInstance : public pp::Instance, pp::MouseLock, pp::Graphics3DClient {
/// expected to be an array of 2 integers representing the
/// number of columns and rows in the TTY.
static void MessageHandlerResizeStatic(const pp::Var& key,
- const pp::Var& value,
+ const pp::Var& message,
void* user_data);
protected:

Powered by Google App Engine
This is Rietveld 408576698