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

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

Issue 10830149: Kill pnacl translation processes immediately on coordinator error and destruction (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months 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/srpc_client.h
diff --git a/ppapi/native_client/src/trusted/plugin/srpc_client.h b/ppapi/native_client/src/trusted/plugin/srpc_client.h
index 376e3ad6e58ee5ef682f2b185ce046828dd4cc6f..072c263a19cf0b35a02265238b2f49ebf7dae206 100644
--- a/ppapi/native_client/src/trusted/plugin/srpc_client.h
+++ b/ppapi/native_client/src/trusted/plugin/srpc_client.h
@@ -45,6 +45,8 @@ class SrpcClient {
bool HasMethod(const nacl::string& method_name);
// Invoke an SRPC method.
bool Invoke(const nacl::string& method_name, SrpcParams* params);
+ // Get the error status from that last method invocation
+ NaClSrpcError GetLastError() { return last_error_; }
bool InitParams(const nacl::string& method_name, SrpcParams* params);
// Attach a service for reverse-direction (from .nexe) RPCs.
@@ -58,6 +60,7 @@ class SrpcClient {
Methods methods_;
NaClSrpcChannel srpc_channel_;
bool srpc_channel_initialised_;
+ NaClSrpcError last_error_;
};
} // namespace plugin

Powered by Google App Engine
This is Rietveld 408576698