Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 * Copyright (c) 2011 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 // i.e., relative URL values are fully expanded relative to the | 59 // i.e., relative URL values are fully expanded relative to the |
| 60 // manifest's URL (via ResolveURL). If there was an error, details | 60 // manifest's URL (via ResolveURL). If there was an error, details |
| 61 // are reported via error_info, and is_portable, if non-NULL, tells | 61 // are reported via error_info, and is_portable, if non-NULL, tells |
| 62 // the caller whether the resolution used the portable | 62 // the caller whether the resolution used the portable |
| 63 // representation or an ISA-specific version of the file. | 63 // representation or an ISA-specific version of the file. |
| 64 virtual bool ResolveKey(const nacl::string& key, | 64 virtual bool ResolveKey(const nacl::string& key, |
| 65 nacl::string* full_url, | 65 nacl::string* full_url, |
| 66 ErrorInfo* error_info, | 66 ErrorInfo* error_info, |
| 67 bool* is_portable) const = 0; | 67 bool* is_portable) const = 0; |
| 68 | 68 |
| 69 // Some manifests (e.g., the pnacl coordinator manifest) need to access | |
| 70 // resources in their extension origin. Ths method returns true if such | |
|
jvoung - send to chromium...
2011/12/19 21:37:08
Ths -> This
elijahtaylor (use chromium)
2011/12/19 21:42:52
s/Ths/This/
elijahtaylor (use chromium)
2011/12/19 21:42:52
"their" is unclear here... maybe something like (b
sehr (please use chromium)
2011/12/20 01:48:38
Done.
sehr (please use chromium)
2011/12/20 01:48:38
Done.
sehr (please use chromium)
2011/12/20 01:48:38
Done.
| |
| 71 // access should be allowed. | |
| 72 virtual bool PermitsExtensionUrls() const = 0; | |
| 73 | |
| 69 protected: | 74 protected: |
| 70 NACL_DISALLOW_COPY_AND_ASSIGN(Manifest); | 75 NACL_DISALLOW_COPY_AND_ASSIGN(Manifest); |
| 71 | 76 |
| 72 const pp::URLUtil_Dev* url_util_; | 77 const pp::URLUtil_Dev* url_util_; |
| 73 nacl::string manifest_base_url_; | 78 nacl::string manifest_base_url_; |
| 74 nacl::string sandbox_isa_; | 79 nacl::string sandbox_isa_; |
| 75 // Determines whether portable programs are chosen in manifest files over | 80 // Determines whether portable programs are chosen in manifest files over |
| 76 // native programs. | 81 // native programs. |
| 77 bool prefer_portable_; | 82 bool prefer_portable_; |
| 78 }; | 83 }; |
| 79 | 84 |
| 80 | 85 |
| 81 } // namespace plugin | 86 } // namespace plugin |
| 82 | 87 |
| 83 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_MANIFEST_H_ | 88 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_MANIFEST_H_ |
| OLD | NEW |