forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathirt_manifest.h
30 lines (22 loc) · 1004 Bytes
/
irt_manifest.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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 <map>
#include <string>
#include "build/build_config.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);
#if !defined(OS_NACL_SFI)
PPAPI_PROXY_EXPORT void RegisterPreopenedDescriptorsNonSfi(
std::map<std::string, int>* key_fd_map);
#endif
} // namespace ppapi
#endif // PPAPI_NACL_IRT_IRT_MANIFEST_H_