OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 // Manifest interface class. | 7 // Manifest interface class. |
8 | 8 |
9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_MANIFEST_H_ | 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_MANIFEST_H_ |
10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_MANIFEST_H_ | 10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_MANIFEST_H_ |
(...skipping 25 matching lines...) Expand all Loading... |
36 // resources from an extension origin distinct from the plugin's origin | 36 // resources from an extension origin distinct from the plugin's origin |
37 // (e.g., the pnacl coordinator needs to load llc, ld, and some libraries). | 37 // (e.g., the pnacl coordinator needs to load llc, ld, and some libraries). |
38 // This out-parameter is true if this manifest lookup confers access to | 38 // This out-parameter is true if this manifest lookup confers access to |
39 // a resource in the extension origin. | 39 // a resource in the extension origin. |
40 | 40 |
41 // Gets the full program URL for the current sandbox ISA from the | 41 // Gets the full program URL for the current sandbox ISA from the |
42 // manifest file. Fills in |pnacl_options| if the program requires | 42 // manifest file. Fills in |pnacl_options| if the program requires |
43 // PNaCl translation. | 43 // PNaCl translation. |
44 virtual bool GetProgramURL(nacl::string* full_url, | 44 virtual bool GetProgramURL(nacl::string* full_url, |
45 PnaclOptions* pnacl_options, | 45 PnaclOptions* pnacl_options, |
| 46 bool* uses_nonsfi_mode, |
46 ErrorInfo* error_info) const = 0; | 47 ErrorInfo* error_info) const = 0; |
47 | 48 |
48 // Resolves a URL relative to the manifest base URL | 49 // Resolves a URL relative to the manifest base URL |
49 virtual bool ResolveURL(const nacl::string& relative_url, | 50 virtual bool ResolveURL(const nacl::string& relative_url, |
50 nacl::string* full_url, | 51 nacl::string* full_url, |
51 ErrorInfo* error_info) const = 0; | 52 ErrorInfo* error_info) const = 0; |
52 | 53 |
53 // Gets the file names from the "files" section of the manifest. No | 54 // Gets the file names from the "files" section of the manifest. No |
54 // checking that the keys' values are proper ISA dictionaries -- it | 55 // checking that the keys' values are proper ISA dictionaries -- it |
55 // is assumed that other consistency checks take care of that, and | 56 // is assumed that other consistency checks take care of that, and |
(...skipping 12 matching lines...) Expand all Loading... |
68 ErrorInfo* error_info) const = 0; | 69 ErrorInfo* error_info) const = 0; |
69 | 70 |
70 protected: | 71 protected: |
71 NACL_DISALLOW_COPY_AND_ASSIGN(Manifest); | 72 NACL_DISALLOW_COPY_AND_ASSIGN(Manifest); |
72 }; | 73 }; |
73 | 74 |
74 | 75 |
75 } // namespace plugin | 76 } // namespace plugin |
76 | 77 |
77 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_MANIFEST_H_ | 78 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_MANIFEST_H_ |
OLD | NEW |