OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ | 5 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ |
6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ | 6 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "native_client/src/include/nacl_macros.h" | 11 #include "native_client/src/include/nacl_macros.h" |
12 #include "native_client/src/include/nacl_string.h" | 12 #include "native_client/src/include/nacl_string.h" |
13 #include "native_client/src/trusted/desc/nacl_desc_wrapper.h" | 13 #include "native_client/src/trusted/desc/nacl_desc_wrapper.h" |
14 | 14 |
15 #include "ppapi/c/private/pp_file_handle.h" | 15 #include "ppapi/c/private/pp_file_handle.h" |
16 #include "ppapi/cpp/completion_callback.h" | 16 #include "ppapi/cpp/completion_callback.h" |
17 | 17 |
18 #include "ppapi/native_client/src/trusted/plugin/nexe_arch.h" | |
19 #include "ppapi/native_client/src/trusted/plugin/plugin_error.h" | 18 #include "ppapi/native_client/src/trusted/plugin/plugin_error.h" |
20 | 19 |
21 namespace plugin { | 20 namespace plugin { |
22 | 21 |
23 class Manifest; | 22 class Manifest; |
24 class Plugin; | 23 class Plugin; |
25 class PnaclCoordinator; | 24 class PnaclCoordinator; |
26 | 25 |
27 // Constants for loading LLC and LD. | 26 // Constants for loading LLC and LD. |
28 class PnaclUrls { | 27 class PnaclUrls { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // Otherwise returns false and places an error message in |errmsg|. | 106 // Otherwise returns false and places an error message in |errmsg|. |
108 bool ParseResourceInfo(const nacl::string& buf, nacl::string& errmsg); | 107 bool ParseResourceInfo(const nacl::string& buf, nacl::string& errmsg); |
109 | 108 |
110 // Convenience function for reporting an error while reading the resource | 109 // Convenience function for reporting an error while reading the resource |
111 // info file. | 110 // info file. |
112 void ReadResourceInfoError(const nacl::string& msg); | 111 void ReadResourceInfoError(const nacl::string& msg); |
113 }; | 112 }; |
114 | 113 |
115 } // namespace plugin; | 114 } // namespace plugin; |
116 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ | 115 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ |
OLD | NEW |