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 NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_SUBPROCESS_H_ | 11 #ifndef COMPONENTS_NACL_RENDERER_PLUGIN_NACL_SUBPROCESS_H_ |
12 #define NATIVE_CLIENT_SRC_TRUSTED_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 "components/nacl/renderer/plugin/service_runtime.h" |
| 17 #include "components/nacl/renderer/plugin/srpc_client.h" |
16 #include "native_client/src/include/nacl_macros.h" | 18 #include "native_client/src/include/nacl_macros.h" |
17 #include "native_client/src/include/portability.h" | 19 #include "native_client/src/include/portability.h" |
18 | 20 |
19 #include "ppapi/native_client/src/trusted/plugin/service_runtime.h" | |
20 #include "ppapi/native_client/src/trusted/plugin/srpc_client.h" | |
21 | |
22 namespace plugin { | 21 namespace plugin { |
23 | 22 |
24 class Plugin; | 23 class Plugin; |
25 class ServiceRuntime; | 24 class ServiceRuntime; |
26 class SrpcParams; | 25 class SrpcParams; |
27 | 26 |
28 | 27 |
29 // A class representing an instance of a NaCl module, loaded by the plugin. | 28 // A class representing an instance of a NaCl module, loaded by the plugin. |
30 class NaClSubprocess { | 29 class NaClSubprocess { |
31 public: | 30 public: |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 std::string description_; | 75 std::string description_; |
77 | 76 |
78 // The service runtime representing the NaCl module instance. | 77 // The service runtime representing the NaCl module instance. |
79 nacl::scoped_ptr<ServiceRuntime> service_runtime_; | 78 nacl::scoped_ptr<ServiceRuntime> service_runtime_; |
80 // Ownership of srpc_client taken from the service runtime. | 79 // Ownership of srpc_client taken from the service runtime. |
81 nacl::scoped_ptr<SrpcClient> srpc_client_; | 80 nacl::scoped_ptr<SrpcClient> srpc_client_; |
82 }; | 81 }; |
83 | 82 |
84 } // namespace plugin | 83 } // namespace plugin |
85 | 84 |
86 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_SUBPROCESS_H_ | 85 #endif // COMPONENTS_NACL_RENDERER_PLUGIN_NACL_SUBPROCESS_H_ |
OLD | NEW |