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

Unified Diff: chrome/common/nacl_types.cc

Issue 18045007: Show more different NaCl loading errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: rebase Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698