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 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 Plugin* plugin_; | 79 Plugin* plugin_; |
80 // The coordinator responsible for reporting errors, etc. | 80 // The coordinator responsible for reporting errors, etc. |
81 PnaclCoordinator* coordinator_; | 81 PnaclCoordinator* coordinator_; |
82 // The descriptor wrappers for the downloaded URLs. Only valid | 82 // The descriptor wrappers for the downloaded URLs. Only valid |
83 // once all_loaded_callback_ has been invoked. | 83 // once all_loaded_callback_ has been invoked. |
84 std::map<nacl::string, nacl::DescWrapper*> resource_wrappers_; | 84 std::map<nacl::string, nacl::DescWrapper*> resource_wrappers_; |
85 | 85 |
86 // Tool names for llc and ld; read from the resource info file. | 86 // Tool names for llc and ld; read from the resource info file. |
87 nacl::string llc_tool_name_; | 87 nacl::string llc_tool_name_; |
88 nacl::string ld_tool_name_; | 88 nacl::string ld_tool_name_; |
89 | |
90 // Parses resource info json data in |buf|. Returns true if successful. | |
91 // Otherwise returns false. | |
92 bool ParseResourceInfo(const nacl::string& buf); | |
93 }; | 89 }; |
94 | 90 |
95 } // namespace plugin; | 91 } // namespace plugin; |
96 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ | 92 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ |
OLD | NEW |