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

Unified Diff: src/trusted/plugin/pnacl_srpc_lib.h

Issue 7799028: Remove src/trusted/plugin (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: fix gyp file for necessary -I Created 9 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
« no previous file with comments | « src/trusted/plugin/pnacl_coordinator.cc ('k') | src/trusted/plugin/pnacl_srpc_lib.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/plugin/pnacl_srpc_lib.h
diff --git a/src/trusted/plugin/pnacl_srpc_lib.h b/src/trusted/plugin/pnacl_srpc_lib.h
deleted file mode 100644
index 9e764c9e798d1f8d52dba563c4c52997afbaaeb3..0000000000000000000000000000000000000000
--- a/src/trusted/plugin/pnacl_srpc_lib.h
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 2011 The Native Client Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_SRPC_LIB_H_
-#define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_SRPC_LIB_H_
-
-// Routines to simplify SRPC invocations.
-
-#include <stdarg.h>
-#include "native_client/src/include/nacl_macros.h"
-#include "native_client/src/include/nacl_string.h"
-#include "native_client/src/include/portability.h"
-
-namespace plugin {
-
-class BrowserInterface;
-class NaClSubprocess;
-class SrpcParams;
-
-// TODO(jvoung): See if anything can be shared between this and
-// src/shared/srpc/invoke.c
-
-// This is just a namespace to collect methods for setting up and invoking
-// SPRC methods against a NaClSubprocess.
-class PnaclSrpcLib {
- public:
- // Invoke an Srpc Method on the NaCl subprocess |subprocess|.
- // |out_params| must be allocated and cleaned up outside of this function,
- // but it will be initialized by this function, and on success
- // any out-params (if any) will be placed in |out_params|.
- // Input types must be listed in |input_signature|, with the actual
- // arguments passed in as var-args.
- // Returns |true| on success.
- static bool InvokeSrpcMethod(BrowserInterface* browser_interface,
- const NaClSubprocess* subprocess,
- const nacl::string& method_name,
- const nacl::string& input_signature,
- SrpcParams* out_params,
- ...);
-
- private:
- NACL_DISALLOW_COPY_AND_ASSIGN(PnaclSrpcLib);
-
- static bool SetupSrpcInvocation(BrowserInterface* browser_interface,
- const NaClSubprocess* subprocess,
- const nacl::string& method_name,
- SrpcParams* params,
- uintptr_t* kMethodIdent);
-
- static bool VInvokeSrpcMethod(BrowserInterface* browser_interface,
- const NaClSubprocess* subprocess,
- const nacl::string& method_name,
- const nacl::string& signature,
- SrpcParams* params,
- va_list vl);
-};
-
-} // namespace plugin;
-
-#endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_SRPC_LIB_H_
« no previous file with comments | « src/trusted/plugin/pnacl_coordinator.cc ('k') | src/trusted/plugin/pnacl_srpc_lib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698