Elim cr-checkbox
[chromium-blink-merge.git] / ppapi / nacl_irt / irt_manifest.h
blob5938a45e5f27ad66fa1fc4a60acd22635e3b7e5d
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PPAPI_NACL_IRT_IRT_MANIFEST_H_
6 #define PPAPI_NACL_IRT_IRT_MANIFEST_H_
8 #include <map>
9 #include <string>
11 #include "ppapi/proxy/ppapi_proxy_export.h"
13 namespace ppapi {
15 // The implementation of irt_open_resource() based on ManifestService.
16 // This communicates with the renderer process via Chrome IPC to obtain the
17 // read-only file descriptor of the resource specified in the manifest file
18 // with the key |file| in files section. Returns 0 on success, or error number
19 // on failure. See also irt_open_resource()'s comment.
20 PPAPI_PROXY_EXPORT int IrtOpenResource(const char* file, int* fd);
22 #if !defined(OS_NACL_SFI)
23 PPAPI_PROXY_EXPORT void RegisterPreopenedDescriptorsNonSfi(
24 std::map<std::string, int>* key_fd_map);
25 #endif
27 } // namespace ppapi
29 #endif // PPAPI_NACL_IRT_IRT_MANIFEST_H_