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

Unified Diff: src/trusted/plugin/desc_based_handle.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/delayed_callback.h ('k') | src/trusted/plugin/desc_based_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/plugin/desc_based_handle.h
diff --git a/src/trusted/plugin/desc_based_handle.h b/src/trusted/plugin/desc_based_handle.h
deleted file mode 100644
index 3c4d2ce9270e9e0129312be63397eb04c987382f..0000000000000000000000000000000000000000
--- a/src/trusted/plugin/desc_based_handle.h
+++ /dev/null
@@ -1,52 +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.
- */
-
-// OBSOLETE -- this class provides support for passing NaClDescs between
-// plugin instances. This support only exists in SRPC-mode plugins.
-// TODO(polina): remove when SRPC descriptor passing is removed.
-
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_DESC_BASED_HANDLE_H_
-#define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_DESC_BASED_HANDLE_H_
-
-#include <stdio.h>
-#include <map>
-
-#include "native_client/src/include/nacl_macros.h"
-#include "native_client/src/include/nacl_scoped_ptr.h"
-#include "native_client/src/trusted/desc/nacl_desc_wrapper.h"
-#include "native_client/src/trusted/plugin/utility.h"
-
-struct NaClDesc;
-
-namespace nacl {
-class DescWrapper;
-} // namespace nacl
-
-namespace plugin {
-
-class Plugin;
-
-// DescBasedHandles are used to convey NaClDesc objects through JavaScript.
-class DescBasedHandle {
- public:
- // Creates a new DescBasedHandle using the specified plugin and wrapper.
- // Returns NULL if either plugin or wrapper is NULL.
- static DescBasedHandle* New(nacl::DescWrapper* wrapper);
- ~DescBasedHandle();
-
- // Because the factory ensured that wrapper was not NULL, dereferencing it
- // here is always safe.
- NaClDesc* desc() const { return wrapper_->desc(); }
-
- private:
- NACL_DISALLOW_COPY_AND_ASSIGN(DescBasedHandle);
- explicit DescBasedHandle(nacl::DescWrapper* wrapper);
- nacl::scoped_ptr<nacl::DescWrapper> wrapper_;
-};
-
-} // namespace plugin
-
-#endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_DESC_BASED_HANDLE_H_
« no previous file with comments | « src/trusted/plugin/delayed_callback.h ('k') | src/trusted/plugin/desc_based_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698