Index: src/trusted/reverse_service/reverse_service.h |
=================================================================== |
--- src/trusted/reverse_service/reverse_service.h (revision 7373) |
+++ src/trusted/reverse_service/reverse_service.h (working copy) |
@@ -29,7 +29,7 @@ |
public: |
virtual ~ReverseInterface() {} |
- // debugging, messaging |
+ // For debugging, messaging. |message| goes to JavaScript console. |
virtual void Log(nacl::string message) = 0; |
// Startup handshake |
@@ -60,6 +60,14 @@ |
// any interested parties. |
virtual void ReportExitStatus(int exit_status) = 0; |
+ // Standard output and standard error redirection, via setting |
+ // NACL_EXE_STDOUT to the string "DEBUG_ONLY:dev://postmessage" (see |
+ // native_client/src/trusted/nacl_resource.* and sel_ldr). NB: the |
+ // contents of |message| is arbitrary bytes and not an Unicode |
+ // string, so the implementation should take care to handle this |
+ // appropriately. |
+ virtual void PostMessage(nacl::string message); // eventually = 0; |
+ |
// covariant impl of Ref() |
ReverseInterface* Ref() { // down_cast |
return reinterpret_cast<ReverseInterface*>(RefCountBase::Ref()); |