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

Unified Diff: ppapi/native_client/src/trusted/plugin/service_runtime.h

Issue 8826005: Chrome-side change to support stdout/err to postmessage debug hookup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moved undef of PostMessage out of instance.h Created 9 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: 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);
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/browser_interface.h ('k') | ppapi/native_client/src/trusted/plugin/service_runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698