NaCl: Replace launch/start param flags with a NaClAppProcessType enum.
commit203dbe474745b94c447c0e1dfc18cfae409a2840
authorjvoung <jvoung@chromium.org>
Fri, 3 Oct 2014 04:39:17 +0000 (2 21:39 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 3 Oct 2014 04:39:52 +0000 (3 04:39 +0000)
treedbab4650751f131dd515e1ce275008ec3198391a
parenta03ae49d253d7d1f517e2f92146a6ba201c78aa6
NaCl: Replace launch/start param flags with a NaClAppProcessType enum.

There was already an enum called NaClProcessType (for the
broker, etc.), so I called this NaClAppProcessType instead.
Renamed the original NaClProcessType to NaClTrustedProcessType.

This type can then be used to decide on various things
like crash throttling, nexe size limits, dyncode
enablement, IRT usage rather than plumb separate flags
through the various layers and IPCs. Then we can tweak
the "uses_irt" to be "optional" for the PNaClTranslator
as well.

Misc: removed enable_dev_interfaces from service_runtime
SelLdrStartParams struct, since it looked unused.

BUG= https://code.google.com/p/nativeclient/issues/detail?id=3914

Review URL: https://codereview.chromium.org/614373004

Cr-Commit-Position: refs/heads/master@{#297987}
21 files changed:
components/nacl.gyp
components/nacl/browser/nacl_host_message_filter.cc
components/nacl/browser/nacl_process_host.cc
components/nacl/browser/nacl_process_host.h
components/nacl/common/nacl_host_messages.h
components/nacl/common/nacl_messages.h
components/nacl/common/nacl_process_type.h
components/nacl/common/nacl_types.cc
components/nacl/common/nacl_types.h
components/nacl/common/nacl_types_param_traits.cc [new file with mode: 0644]
components/nacl/common/nacl_types_param_traits.h [new file with mode: 0644]
components/nacl/loader/nacl_listener.cc
components/nacl/loader/nonsfi/nonsfi_listener.cc
components/nacl/renderer/ppb_nacl_private_impl.cc
ppapi/api/private/ppb_nacl_private.idl
ppapi/c/private/ppb_nacl_private.h
ppapi/native_client/src/trusted/plugin/plugin.cc
ppapi/native_client/src/trusted/plugin/plugin.h
ppapi/native_client/src/trusted/plugin/service_runtime.cc
ppapi/native_client/src/trusted/plugin/service_runtime.h
ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c