| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Instances of NaCl modules spun up within the plugin as a subprocess. | 5 // Instances of NaCl modules spun up within the plugin as a subprocess. |
| 6 // This may represent the "main" nacl module, or it may represent helpers | 6 // This may represent the "main" nacl module, or it may represent helpers |
| 7 // that perform various tasks within the plugin, for example, | 7 // that perform various tasks within the plugin, for example, |
| 8 // a NaCl module for a compiler could be loaded to translate LLVM bitcode | 8 // a NaCl module for a compiler could be loaded to translate LLVM bitcode |
| 9 // into native code. | 9 // into native code. |
| 10 | 10 |
| 11 #ifndef COMPONENTS_NACL_RENDERER_PLUGIN_NACL_SUBPROCESS_H_ | 11 #ifndef COMPONENTS_NACL_RENDERER_PLUGIN_NACL_SUBPROCESS_H_ |
| 12 #define COMPONENTS_NACL_RENDERER_PLUGIN_NACL_SUBPROCESS_H_ | 12 #define COMPONENTS_NACL_RENDERER_PLUGIN_NACL_SUBPROCESS_H_ |
| 13 | 13 |
| 14 #include <stdarg.h> | 14 #include <stdarg.h> |
| 15 | 15 |
| 16 #include "base/macros.h" |
| 16 #include "components/nacl/renderer/plugin/service_runtime.h" | 17 #include "components/nacl/renderer/plugin/service_runtime.h" |
| 17 #include "components/nacl/renderer/plugin/srpc_client.h" | 18 #include "components/nacl/renderer/plugin/srpc_client.h" |
| 18 #include "native_client/src/include/nacl_macros.h" | 19 #include "native_client/src/include/nacl_macros.h" |
| 19 #include "native_client/src/include/portability.h" | 20 #include "native_client/src/include/portability.h" |
| 20 | 21 |
| 21 namespace plugin { | 22 namespace plugin { |
| 22 | 23 |
| 23 class Plugin; | 24 class Plugin; |
| 24 class ServiceRuntime; | 25 class ServiceRuntime; |
| 25 class SrpcParams; | 26 class SrpcParams; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 77 |
| 77 // The service runtime representing the NaCl module instance. | 78 // The service runtime representing the NaCl module instance. |
| 78 nacl::scoped_ptr<ServiceRuntime> service_runtime_; | 79 nacl::scoped_ptr<ServiceRuntime> service_runtime_; |
| 79 // Ownership of srpc_client taken from the service runtime. | 80 // Ownership of srpc_client taken from the service runtime. |
| 80 nacl::scoped_ptr<SrpcClient> srpc_client_; | 81 nacl::scoped_ptr<SrpcClient> srpc_client_; |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 } // namespace plugin | 84 } // namespace plugin |
| 84 | 85 |
| 85 #endif // COMPONENTS_NACL_RENDERER_PLUGIN_NACL_SUBPROCESS_H_ | 86 #endif // COMPONENTS_NACL_RENDERER_PLUGIN_NACL_SUBPROCESS_H_ |
| OLD | NEW |