blob: 56b04c72545c36bb09e458eab177e2b94e795f29 [file] [log] [blame]
// 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.
#include "components/nacl/renderer/plugin/nacl_subprocess.h"
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <sstream>
#include "components/nacl/renderer/plugin/plugin_error.h"
namespace plugin {
NaClSubprocess::NaClSubprocess() {
}
// Shutdown the socket connection and service runtime, in that order.
void NaClSubprocess::Shutdown() {
if (service_runtime_.get() != NULL) {
service_runtime_->Shutdown();
service_runtime_.reset(NULL);
}
}
NaClSubprocess::~NaClSubprocess() {
Shutdown();
}
} // namespace plugin