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

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

Issue 876483002: NaCl: Move src/trusted/plugin/ to components/nacl/renderer/plugin/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update #include guards Created 5 years, 11 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
deleted file mode 100644
index 71ecbf7e4912f296ebcc3f8728e27e52bc0b952d..0000000000000000000000000000000000000000
--- a/ppapi/native_client/src/trusted/plugin/srpc_client.h
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright (c) 2012 The Chromium 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 <string>
-
-#include "native_client/src/include/nacl_macros.h"
-#include "native_client/src/shared/srpc/nacl_srpc.h"
-#include "ppapi/native_client/src/trusted/plugin/utility.h"
-
-namespace nacl {
-class DescWrapper;
-} // namespace nacl
-
-namespace plugin {
-
-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(nacl::DescWrapper* wrapper);
-
- // Init is passed a DescWrapper. The SrpcClient performs service
- // discovery and provides the interface for future rpcs.
- bool Init(nacl::DescWrapper* socket);
-
- // The destructor closes the connection to sel_ldr.
- ~SrpcClient();
-
- // Test whether the SRPC service has a given method.
- bool HasMethod(const std::string& method_name);
- // Invoke an SRPC method.
- bool Invoke(const std::string& method_name, SrpcParams* params);
- // Get the error status from that last method invocation
- NaClSrpcError GetLastError() { return last_error_; }
- bool InitParams(const std::string& method_name, SrpcParams* params);
-
- // Attach a service for reverse-direction (from .nexe) RPCs.
- void AttachService(NaClSrpcService* service, void* instance_data);
-
- private:
- NACL_DISALLOW_COPY_AND_ASSIGN(SrpcClient);
- SrpcClient();
- void GetMethods();
- typedef std::map<std::string, MethodInfo*> Methods;
- Methods methods_;
- NaClSrpcChannel srpc_channel_;
- bool srpc_channel_initialised_;
- NaClSrpcError last_error_;
-};
-
-} // namespace plugin
-
-#endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_CLIENT_H_

Powered by Google App Engine
This is Rietveld 408576698