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

Unified Diff: native_client_sdk/src/libraries/nacl_mounts/pepper_interface.h

Issue 11592003: Add support for simple run of "main" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replace missing stdio Created 8 years 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_mounts/pepper_interface.h
diff --git a/native_client_sdk/src/libraries/nacl_mounts/pepper_interface.h b/native_client_sdk/src/libraries/nacl_mounts/pepper_interface.h
index 484ff8d6e71048b0b6740d206df53d869430260c..6e5a68578cd2c783341c93c00e441ce2474f306e 100644
--- a/native_client_sdk/src/libraries/nacl_mounts/pepper_interface.h
+++ b/native_client_sdk/src/libraries/nacl_mounts/pepper_interface.h
@@ -10,12 +10,17 @@
#include <ppapi/c/pp_instance.h>
#include <ppapi/c/pp_resource.h>
#include <ppapi/c/pp_var.h>
+#include <ppapi/c/ppb_console.h>
+#include <ppapi/c/ppb_messaging.h>
+
#include <utils/macros.h>
+class ConsoleInterface;
class DirectoryReaderInterface;
class FileIoInterface;
class FileRefInterface;
class FileSystemInterface;
+class MessagingInterface;
class VarInterface;
class PepperInterface {
@@ -24,13 +29,21 @@ class PepperInterface {
virtual PP_Instance GetInstance() = 0;
virtual void AddRefResource(PP_Resource) = 0;
virtual void ReleaseResource(PP_Resource) = 0;
+ virtual ConsoleInterface* GetConsoleInterface() = 0;
virtual FileSystemInterface* GetFileSystemInterface() = 0;
virtual FileRefInterface* GetFileRefInterface() = 0;
virtual FileIoInterface* GetFileIoInterface() = 0;
virtual DirectoryReaderInterface* GetDirectoryReaderInterface() = 0;
+ virtual MessagingInterface* GetMessagingInterface() = 0;
virtual VarInterface* GetVarInterface() = 0;
};
+class ConsoleInterface {
+ public:
+ virtual ~ConsoleInterface() {}
+ virtual void Log(PP_Instance, PP_LogLevel, struct PP_Var) = 0;
+};
+
class FileSystemInterface {
public:
virtual ~FileSystemInterface() {}
@@ -74,9 +87,16 @@ class DirectoryReaderInterface {
PP_CompletionCallback) = 0;
};
+class MessagingInterface {
+ public:
+ virtual ~MessagingInterface() {}
+ virtual void PostMessage(PP_Instance, struct PP_Var ) = 0;
+};
+
class VarInterface {
public:
virtual ~VarInterface() {}
+ virtual struct PP_Var VarFromUtf8(const char*, uint32_t) = 0;
virtual const char* VarToUtf8(PP_Var, uint32_t*) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698