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

Unified Diff: ppapi/proxy/irt_shim_ppapi.h

Issue 164373010: Split the PNaCl IRT shim into 3 pieces, and include one piece into IRT. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix up mips Created 6 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/irt_shim_ppapi.h
diff --git a/ppapi/proxy/irt_shim_ppapi.h b/ppapi/proxy/irt_shim_ppapi.h
new file mode 100644
index 0000000000000000000000000000000000000000..a7c83cb33d7890a7958e68c3d435c208ef2a723a
--- /dev/null
+++ b/ppapi/proxy/irt_shim_ppapi.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2014 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef PPAPI_PROXY_IRT_SHIM_PPAPI_H_
+#define PPAPI_PROXY_IRT_SHIM_PPAPI_H_ 1
+
+#include "ppapi/nacl_irt/irt_ppapi.h"
+
+#if PNACL_SHIM_AOT
+/* Given a hook for the real irt ppapi start, get a shimmed ppapi_start. */
+extern int (*real_irt_ppapi_start)(const struct PP_StartFunctions *);
+extern int irt_shim_ppapi_start(const struct PP_StartFunctions *funcs);
+#else
+/*
+ * A private version of the NACL_IRT_PPAPIHOOK_v0_1, which provides
+ * PNaCl with shimmed IRT interfaces.
+ */
+#define NACL_IRT_PPAPIHOOK_PNACL_PRIVATE_v0_1 \
+ "nacl-irt-ppapihook-pnacl-private-0.1"
+extern const struct nacl_irt_ppapihook nacl_irt_ppapihook_pnacl_private;
+#endif
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698