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

Unified Diff: ppapi/nacl_irt/irt_manifest.h

Issue 249183004: Implement open_resource in non-SFI mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/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..dfa15326333b5a4a419343f1b663d8730857f68c
--- /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 communicate with the renderer process via Chrome IPC to obtain the
Mark Seaborn 2014/04/30 21:20:58 "communicates"
hidehiko 2014/05/01 05:20:31 Done.
+// read-only file descriptor of the resource specified in manifest file with
Mark Seaborn 2014/04/30 21:20:58 Nit: "the manifest file"
hidehiko 2014/05/01 05:20:31 Done.
+// 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_

Powered by Google App Engine
This is Rietveld 408576698