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

Unified Diff: src/trusted/plugin/srpc/srpc_client.h

Issue 2981011: Move plugin/srpc contents to the more appropriately named plugin/common.... (Closed) Base URL: http://nativeclient.googlecode.com/svn/trunk/src/native_client/
Patch Set: '' Created 10 years, 5 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/srpc/socket_address.cc ('k') | src/trusted/plugin/srpc/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/srpc_client.h
===================================================================
--- src/trusted/plugin/srpc/srpc_client.h (revision 2716)
+++ src/trusted/plugin/srpc/srpc_client.h (working copy)
@@ -1,51 +0,0 @@
-/*
- * Copyright 2008 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_SRPC_CLIENT_H_
-#define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_SRPC_CLIENT_H_
-
-#include <map>
-#include "native_client/src/include/nacl_macros.h"
-#include "native_client/src/trusted/plugin/srpc/utility.h"
-
-namespace plugin {
-
-class ConnectedSocket;
-class MethodInfo;
-
-// SrpcClient represents an SRPC connection to a client.
-class SrpcClient {
- public:
- // Init is passed a ConnectedSocket. It performs service
- // discovery and provides the interface for future rpcs.
- bool Init(BrowserInterface* browser_interface, ConnectedSocket* socket);
-
- explicit SrpcClient();
- // The destructor closes the connection to sel_ldr.
- ~SrpcClient();
-
- void StartJSObjectProxy(Plugin* plugin);
- // 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);
- void GetMethods();
- typedef std::map<uintptr_t, MethodInfo*> Methods;
- Methods methods_;
- NaClSrpcChannel srpc_channel_;
- BrowserInterface* browser_interface_;
-};
-
-} // namespace plugin
-
-#endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_SRPC_CLIENT_H_
« no previous file with comments | « src/trusted/plugin/srpc/socket_address.cc ('k') | src/trusted/plugin/srpc/srpc_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698