Index: chrome/common/nacl_types.cc |
=================================================================== |
--- chrome/common/nacl_types.cc (revision 211556) |
+++ chrome/common/nacl_types.cc (working copy) |
@@ -52,4 +52,29 @@ |
NaClLaunchParams::~NaClLaunchParams() { |
} |
+NaClLaunchResult::NaClLaunchResult() |
+#if defined(OS_WIN) |
+ : imc_channel_handle(-1), |
Mark Seaborn
2013/07/16 02:02:53
0 would be safer than -1. -1 is INVALID_HANDLE_VA
halyavin
2013/07/16 08:04:35
I know, but IPC::GetFileHandleForProcess in ipc/ip
Mark Seaborn
2013/07/17 05:29:58
Yes, that's much better than using a numeric const
halyavin
2013/07/17 13:12:16
Done.
|
+#else |
+ : imc_channel_handle(), |
+#endif |
+ ipc_channel_handle(), |
+ plugin_pid(base::kNullProcessId), |
+ plugin_child_id(0) { |
+} |
+ |
+NaClLaunchResult::NaClLaunchResult( |
+ FileDescriptor imc_channel_handle, |
+ const IPC::ChannelHandle& ipc_channel_handle, |
+ base::ProcessId plugin_pid, |
+ int plugin_child_id) |
+ : imc_channel_handle(imc_channel_handle), |
+ ipc_channel_handle(ipc_channel_handle), |
+ plugin_pid(plugin_pid), |
+ plugin_child_id(plugin_child_id) { |
+} |
+ |
+NaClLaunchResult::~NaClLaunchResult() { |
+} |
+ |
} // namespace nacl |