| Index: ppapi/native_client/src/trusted/plugin/service_runtime.h
|
| diff --git a/ppapi/native_client/src/trusted/plugin/service_runtime.h b/ppapi/native_client/src/trusted/plugin/service_runtime.h
|
| index 1d0c3bfdb30028827f8b2885a4649d69e0fbcf0f..b1bafbfe6b29249ca589e0fe22d1c9d6b57098b7 100644
|
| --- a/ppapi/native_client/src/trusted/plugin/service_runtime.h
|
| +++ b/ppapi/native_client/src/trusted/plugin/service_runtime.h
|
| @@ -47,6 +47,13 @@ struct LogToJavaScriptConsoleResource {
|
| std::string message;
|
| };
|
|
|
| +struct PostMessageResource {
|
| + public:
|
| + explicit PostMessageResource(std::string msg)
|
| + : message(msg) {}
|
| + std::string message;
|
| +};
|
| +
|
| struct OpenManifestEntryResource {
|
| public:
|
| OpenManifestEntryResource(std::string target_url,
|
| @@ -100,6 +107,8 @@ class PluginReverseInterface: public nacl::ReverseInterface {
|
|
|
| virtual void Log(nacl::string message);
|
|
|
| + virtual void DoPostMessage(nacl::string message);
|
| +
|
| virtual void StartupInitializationComplete();
|
|
|
| virtual bool EnumerateManifestKeys(std::set<nacl::string>* out_keys);
|
| @@ -116,6 +125,9 @@ class PluginReverseInterface: public nacl::ReverseInterface {
|
| virtual void Log_MainThreadContinuation(LogToJavaScriptConsoleResource* p,
|
| int32_t err);
|
|
|
| + virtual void PostMessage_MainThreadContinuation(PostMessageResource* p,
|
| + int32_t err);
|
| +
|
| virtual void OpenManifestEntry_MainThreadContinuation(
|
| OpenManifestEntryResource* p,
|
| int32_t err);
|
|
|