• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2012 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "components/nacl/renderer/plugin/nacl_subprocess.h"
6 
7 #include <stdarg.h>
8 #include <stddef.h>
9 #include <stdint.h>
10 
11 #include <sstream>
12 
13 #include "components/nacl/renderer/plugin/plugin_error.h"
14 
15 namespace plugin {
16 
NaClSubprocess()17 NaClSubprocess::NaClSubprocess() {
18 }
19 
20 // Shutdown the socket connection and service runtime, in that order.
Shutdown()21 void NaClSubprocess::Shutdown() {
22   if (service_runtime_.get() != NULL) {
23     service_runtime_->Shutdown();
24     service_runtime_.reset(NULL);
25   }
26 }
27 
~NaClSubprocess()28 NaClSubprocess::~NaClSubprocess() {
29   Shutdown();
30 }
31 
32 }  // namespace plugin
33