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

Unified Diff: src/trusted/plugin/srpc/desc_based_handle.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/connected_socket.cc ('k') | src/trusted/plugin/srpc/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/srpc/desc_based_handle.h
===================================================================
--- src/trusted/plugin/srpc/desc_based_handle.h (revision 2716)
+++ src/trusted/plugin/srpc/desc_based_handle.h (working copy)
@@ -1,62 +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.
- */
-
-// Portable representation of scriptable NaClDesc.
-
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_DESC_BASED_HANDLE_H_
-#define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_DESC_BASED_HANDLE_H_
-
-#include <stdio.h>
-#include <map>
-
-#include "native_client/src/include/nacl_macros.h"
-#include "native_client/src/trusted/desc/nacl_desc_wrapper.h"
-#include "native_client/src/trusted/plugin/srpc/portable_handle.h"
-#include "native_client/src/trusted/plugin/srpc/utility.h"
-
-struct NaClDesc;
-
-namespace nacl {
-class DescWrapper;
-} // namespace nacl
-
-namespace plugin {
-
-class Plugin;
-
-// DescBasedHandles are used to make NaClDesc objects scriptable by JavaScript.
-class DescBasedHandle : public PortableHandle {
- public:
- static DescBasedHandle* New(Plugin* plugin, nacl::DescWrapper* wrapper);
-
- void Invalidate() { }
-
- virtual BrowserInterface* browser_interface() const;
- virtual Plugin* plugin() const { return plugin_; }
- // Get the contained descriptor.
- virtual nacl::DescWrapper* wrapper() const { return wrapper_; }
- virtual NaClDesc* desc() const {
- if (NULL == wrapper_) {
- return NULL;
- }
- return wrapper_->desc();
- }
-
- protected:
- DescBasedHandle();
- virtual ~DescBasedHandle();
- bool Init(Plugin* plugin, nacl::DescWrapper* wrapper);
-
- private:
- NACL_DISALLOW_COPY_AND_ASSIGN(DescBasedHandle);
- void LoadMethods();
- Plugin* plugin_;
- nacl::DescWrapper* wrapper_;
-};
-
-} // namespace plugin
-
-#endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_SRPC_DESC_BASED_HANDLE_H_
« no previous file with comments | « src/trusted/plugin/srpc/connected_socket.cc ('k') | src/trusted/plugin/srpc/desc_based_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698