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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 const pp::CompletionCallback& all_loaded_callback); | 71 const pp::CompletionCallback& all_loaded_callback); |
72 | 72 |
73 const nacl::string& GetLlcUrl() { | 73 const nacl::string& GetLlcUrl() { |
74 return llc_tool_name; | 74 return llc_tool_name; |
75 } | 75 } |
76 | 76 |
77 const nacl::string& GetLdUrl() { | 77 const nacl::string& GetLdUrl() { |
78 return ld_tool_name; | 78 return ld_tool_name; |
79 } | 79 } |
80 | 80 |
| 81 nacl::string GetFullUrl(const nacl::string& partial_url) const; |
| 82 |
81 // Get file descs by name. Only valid after StartLoad's completion callback | 83 // Get file descs by name. Only valid after StartLoad's completion callback |
82 // fired. | 84 // fired. |
83 nacl::DescWrapper* WrapperForUrl(const nacl::string& url); | 85 nacl::DescWrapper* WrapperForUrl(const nacl::string& url); |
84 | 86 |
85 static int32_t GetPnaclFD(Plugin* plugin, const char* filename); | 87 static int32_t GetPnaclFD(Plugin* plugin, const char* filename); |
86 | 88 |
87 private: | 89 private: |
88 NACL_DISALLOW_COPY_AND_ASSIGN(PnaclResources); | 90 NACL_DISALLOW_COPY_AND_ASSIGN(PnaclResources); |
89 | 91 |
90 // The plugin requesting the resource loading. | 92 // The plugin requesting the resource loading. |
(...skipping 14 matching lines...) Expand all Loading... |
105 // Otherwise returns false and places an error message in |errmsg|. | 107 // Otherwise returns false and places an error message in |errmsg|. |
106 bool ParseResourceInfo(const nacl::string& buf, nacl::string& errmsg); | 108 bool ParseResourceInfo(const nacl::string& buf, nacl::string& errmsg); |
107 | 109 |
108 // Convenience function for reporting an error while reading the resource | 110 // Convenience function for reporting an error while reading the resource |
109 // info file. | 111 // info file. |
110 void ReadResourceInfoError(const nacl::string& msg); | 112 void ReadResourceInfoError(const nacl::string& msg); |
111 }; | 113 }; |
112 | 114 |
113 } // namespace plugin; | 115 } // namespace plugin; |
114 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ | 116 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PNACL_RESOURCES_H_ |
OLD | NEW |