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

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: more PostMessage collision 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..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);

Powered by Google App Engine
This is Rietveld 408576698