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

Unified Diff: src/trusted/plugin/srpc_client.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/service_runtime.cc ('k') | src/trusted/plugin/srpc_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/plugin/srpc_client.h
diff --git a/src/trusted/plugin/srpc_client.h b/src/trusted/plugin/srpc_client.h
deleted file mode 100644
index 7fc8ee283d94910dbef8b9481bc70f0822e916c9..0000000000000000000000000000000000000000
--- a/src/trusted/plugin/srpc_client.h
+++ /dev/null
@@ -1,64 +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.
- */
-
-// A representation of an SRPC connection. These can be either to the
-// service runtime or to untrusted NaCl threads.
-
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_CLIENT_H_
-#define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_CLIENT_H_
-
-#include <map>
-#include "native_client/src/include/nacl_macros.h"
-#include "native_client/src/include/nacl_string.h"
-#include "native_client/src/trusted/plugin/utility.h"
-#include "native_client/src/shared/srpc/nacl_srpc.h"
-
-namespace nacl {
-class DescWrapper;
-} // namespace nacl
-
-namespace plugin {
-
-class BrowserInterface;
-class ErrorInfo;
-class MethodInfo;
-class Plugin;
-class SrpcParams;
-
-// SrpcClient represents an SRPC connection to a client.
-class SrpcClient {
- public:
- // Factory method for creating SrpcClients.
- static SrpcClient* New(Plugin* plugin, nacl::DescWrapper* wrapper);
-
- // Init is passed a DescWrapper. The SrpcClient performs service
- // discovery and provides the interface for future rpcs.
- bool Init(BrowserInterface* browser_interface, nacl::DescWrapper* socket);
-
- // The destructor closes the connection to sel_ldr.
- ~SrpcClient();
-
- bool StartJSObjectProxy(Plugin* plugin, ErrorInfo* error_info);
- // Test whether the SRPC service has a given method.
- bool HasMethod(uintptr_t method_id);
- // Invoke an SRPC method.
- bool Invoke(uintptr_t method_id, SrpcParams* params);
- bool InitParams(uintptr_t method_id, SrpcParams* params);
-
- private:
- NACL_DISALLOW_COPY_AND_ASSIGN(SrpcClient);
- SrpcClient();
- void GetMethods();
- typedef std::map<uintptr_t, MethodInfo*> Methods;
- Methods methods_;
- NaClSrpcChannel srpc_channel_;
- bool srpc_channel_initialised_;
- BrowserInterface* browser_interface_;
-};
-
-} // namespace plugin
-
-#endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_CLIENT_H_
« no previous file with comments | « src/trusted/plugin/service_runtime.cc ('k') | src/trusted/plugin/srpc_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698