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

Unified Diff: components/nacl/renderer/plugin/srpc_params.h

Issue 1569283002: NaCl cleanup: Remove SrpcParams and SrpcClient, which are unused now (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « components/nacl/renderer/plugin/srpc_client.cc ('k') | components/nacl/renderer/plugin/srpc_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/renderer/plugin/srpc_params.h
diff --git a/components/nacl/renderer/plugin/srpc_params.h b/components/nacl/renderer/plugin/srpc_params.h
deleted file mode 100644
index 68f1a7751356e0a431341010b3634b6446bf0e95..0000000000000000000000000000000000000000
--- a/components/nacl/renderer/plugin/srpc_params.h
+++ /dev/null
@@ -1,45 +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.
-
-// Parameter types for SRPC Invocation.
-
-#ifndef COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_PARAMS_H
-#define COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_PARAMS_H
-
-#include "base/macros.h"
-#include "native_client/src/include/nacl_macros.h"
-#include "native_client/src/include/portability_string.h"
-#include "native_client/src/shared/srpc/nacl_srpc.h"
-
-namespace plugin {
-
-// A utility class that builds and deletes parameter vectors used in rpcs.
-class SrpcParams {
- public:
- SrpcParams() {
- memset(ins_, 0, sizeof(ins_));
- memset(outs_, 0, sizeof(outs_));
- }
-
- ~SrpcParams() {
- FreeAll();
- }
-
- bool Init(const char* in_types, const char* out_types);
-
- NaClSrpcArg** ins() const { return const_cast<NaClSrpcArg**>(ins_); }
- NaClSrpcArg** outs() const { return const_cast<NaClSrpcArg**>(outs_); }
-
- private:
- NACL_DISALLOW_COPY_AND_ASSIGN(SrpcParams);
- void FreeAll();
- // The ins_ and outs_ arrays contain one more element, to hold a NULL pointer
- // to indicate the end of the list.
- NaClSrpcArg* ins_[NACL_SRPC_MAX_ARGS + 1];
- NaClSrpcArg* outs_[NACL_SRPC_MAX_ARGS + 1];
-};
-
-} // namespace plugin
-
-#endif // COMPONENTS_NACL_RENDERER_PLUGIN_SRPC_PARAMS_H
« no previous file with comments | « components/nacl/renderer/plugin/srpc_client.cc ('k') | components/nacl/renderer/plugin/srpc_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698