NaCl: Copy PNaCl translator IRT interfaces to the Chromium side
Add a copy of the existing SRPC-based implementation --
native_client/src/untrusted/irt/irt_pnacl_translator_{compile,link}.c
-- to the Chromium side. This will allow the two implementations to
be independently changed to remove use of SRPC.
In copying this code, I have made some changes to follow the Chromium
style:
* Switching to C++ and using C++ comments
* Using anon namespaces instead of "static"
* "*" spacing (using clang-format)
* "FooBar" function naming instead of "foo_bar"
* Using the Chromium copyright notice
BUG=302078
TEST=e.g. NaClBrowserTestPnacl.PPAPICore in browser_tests
(also manually tested with NaCl-side interface disabled, to ensure the
Chromium-side one is really being used)
Review URL: https://codereview.chromium.org/1240343004
Cr-Commit-Position: refs/heads/master@{#339825}
diff --git a/ppapi/proxy/BUILD.gn b/ppapi/proxy/BUILD.gn
index c9de244..62a5370c 100644
--- a/ppapi/proxy/BUILD.gn
+++ b/ppapi/proxy/BUILD.gn
@@ -198,6 +198,8 @@
sources += [
"../nacl_irt/irt_interfaces.cc",
"../nacl_irt/irt_interfaces.h",
+ "../nacl_irt/irt_pnacl_translator_compile.cc",
+ "../nacl_irt/irt_pnacl_translator_link.cc",
"../nacl_irt/irt_ppapi.cc",
"../nacl_irt/irt_ppapi.h",
"../nacl_irt/irt_start.cc",