Index: ppapi/nacl_irt/irt_manifest.h |
diff --git a/ppapi/nacl_irt/irt_manifest.h b/ppapi/nacl_irt/irt_manifest.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b1e09235747ee42e28247c958964be3fe4b94b97 |
--- /dev/null |
+++ b/ppapi/nacl_irt/irt_manifest.h |
@@ -0,0 +1,21 @@ |
+// 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_NACL_IRT_IRT_MANIFEST_H_ |
+#define PPAPI_NACL_IRT_IRT_MANIFEST_H_ |
+ |
+#include "ppapi/proxy/ppapi_proxy_export.h" |
+ |
+namespace ppapi { |
+ |
+// The implementation of irt_open_resource() based on ManifestService. |
+// This communicates with the renderer process via Chrome IPC to obtain the |
+// read-only file descriptor of the resource specified in the manifest file |
+// with the key |file| in files section. Returns 0 on success, or error number |
+// on failure. See also irt_open_resource()'s comment. |
+PPAPI_PROXY_EXPORT int IrtOpenResource(const char* file, int* fd); |
+ |
+} // namespace ppapi |
+ |
+#endif // PPAPI_NACL_IRT_IRT_MANIFEST_H_ |