| 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..31f28c16b1842a1af2945e275750b74bed8ea130 100644
|
| --- a/ppapi/native_client/src/trusted/plugin/service_runtime.h
|
| +++ b/ppapi/native_client/src/trusted/plugin/service_runtime.h
|
| @@ -19,7 +19,6 @@
|
| #include "native_client/src/shared/srpc/nacl_srpc.h"
|
| #include "native_client/src/trusted/reverse_service/reverse_service.h"
|
| #include "native_client/src/trusted/plugin/utility.h"
|
| -#include "native_client/src/trusted/plugin/file_downloader.h"
|
| #include "native_client/src/trusted/desc/nacl_desc_wrapper.h"
|
| #include "native_client/src/trusted/weak_ref/weak_ref.h"
|
|
|
| @@ -47,6 +46,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 +106,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 +124,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);
|
|
|