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

Unified Diff: src/trusted/plugin/nacl_subprocess.cc

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/nacl_subprocess.h ('k') | src/trusted/plugin/nexe_arch.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/plugin/nacl_subprocess.cc
diff --git a/src/trusted/plugin/nacl_subprocess.cc b/src/trusted/plugin/nacl_subprocess.cc
deleted file mode 100644
index c931a374765173273a08c3bf7eaa4d5b23414380..0000000000000000000000000000000000000000
--- a/src/trusted/plugin/nacl_subprocess.cc
+++ /dev/null
@@ -1,76 +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.
-
-#include "native_client/src/trusted/plugin/nacl_subprocess.h"
-
-#include "native_client/src/trusted/plugin/plugin_error.h"
-#include "native_client/src/trusted/plugin/scriptable_handle.h"
-#include "native_client/src/trusted/plugin/service_runtime.h"
-
-namespace plugin {
-
-nacl::string NaClSubprocess::description() const {
- nacl::stringstream ss;
- if (assigned_id_ == kMainSubprocessId) {
- ss << "main subprocess";
- } else {
- ss << "helper subprocess #" << assigned_id_;
- }
- return ss.str();
-}
-
-nacl::string NaClSubprocess::detailed_description() const {
- nacl::stringstream ss;
- ss << description()
- << "={ this=" << static_cast<const void*>(this)
- << ", srpc_client=" << static_cast<void*>(srpc_client_.get())
- << ", service_runtime=" << static_cast<void*>(service_runtime_.get())
- << " }";
- return ss.str();
-}
-
-// Shutdown the socket connection and service runtime, in that order.
-void NaClSubprocess::Shutdown() {
- srpc_client_.reset(NULL);
- if (service_runtime_.get() != NULL) {
- service_runtime_->Shutdown();
- service_runtime_.reset(NULL);
- }
-}
-
-NaClSubprocess::~NaClSubprocess() {
- Shutdown();
-}
-
-bool NaClSubprocess::StartSrpcServices() {
- srpc_client_.reset(service_runtime_->SetupAppChannel());
- return NULL != srpc_client_.get();
-}
-
-bool NaClSubprocess::StartJSObjectProxy(Plugin* plugin, ErrorInfo* error_info) {
- return srpc_client_->StartJSObjectProxy(plugin, error_info);
-}
-
-bool NaClSubprocess::HasMethod(uintptr_t method_id) const {
- if (NULL == srpc_client_.get()) {
- return false;
- }
- return srpc_client_->HasMethod(method_id);
-}
-
-bool NaClSubprocess::InitParams(uintptr_t method_id, SrpcParams* params) const {
- if (NULL == srpc_client_.get()) {
- return false;
- }
- return srpc_client_->InitParams(method_id, params);
-}
-
-bool NaClSubprocess::Invoke(uintptr_t method_id, SrpcParams* params) const {
- if (NULL == srpc_client_.get()) {
- return false;
- }
- return srpc_client_->Invoke(method_id, params);
-}
-
-} // namespace plugin
« no previous file with comments | « src/trusted/plugin/nacl_subprocess.h ('k') | src/trusted/plugin/nexe_arch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698