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

Side by Side Diff: components/nacl/renderer/plugin/nacl_subprocess.h

Issue 876483002: NaCl: Move src/trusted/plugin/ to components/nacl/renderer/plugin/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase + #include order Created 5 years, 10 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 unified diff | Download patch
OLDNEW
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 NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_SUBPROCESS_H_
jvoung (off chromium) 2015/01/28 22:18:17 Should the include guards be changed at some point
Mark Seaborn 2015/01/29 05:35:06 Thanks for catching that. Fixed.
12 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_SUBPROCESS_H_ 12 #define NATIVE_CLIENT_SRC_TRUSTED_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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NACL_SUBPROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698