Index: ppapi/native_client/src/trusted/plugin/service_runtime.cc |
diff --git a/ppapi/native_client/src/trusted/plugin/service_runtime.cc b/ppapi/native_client/src/trusted/plugin/service_runtime.cc |
index d7c8683148f2d11a57b9f1003efc1b2811dac4c5..c3a7f949b349ab0672bf5e815adb47cb42ff84db 100644 |
--- a/ppapi/native_client/src/trusted/plugin/service_runtime.cc |
+++ b/ppapi/native_client/src/trusted/plugin/service_runtime.cc |
@@ -47,7 +47,6 @@ |
#include "ppapi/cpp/core.h" |
#include "ppapi/cpp/completion_callback.h" |
-#include "ppapi/native_client/src/trusted/plugin/manifest.h" |
#include "ppapi/native_client/src/trusted/plugin/plugin.h" |
#include "ppapi/native_client/src/trusted/plugin/plugin_error.h" |
#include "ppapi/native_client/src/trusted/plugin/pnacl_resources.h" |
@@ -198,13 +197,13 @@ void OpenManifestEntryResource::MaybeRunCallback(int32_t pp_error) { |
PluginReverseInterface::PluginReverseInterface( |
nacl::WeakRefAnchor* anchor, |
Plugin* plugin, |
- const Manifest* manifest, |
+ int32_t manifest_id, |
ServiceRuntime* service_runtime, |
pp::CompletionCallback init_done_cb, |
pp::CompletionCallback crash_cb) |
: anchor_(anchor), |
plugin_(plugin), |
- manifest_(manifest), |
+ manifest_id_(manifest_id), |
service_runtime_(service_runtime), |
shutting_down_(false), |
init_done_cb_(init_done_cb), |
@@ -347,9 +346,13 @@ void PluginReverseInterface::OpenManifestEntry_MainThreadContinuation( |
NaClLog(4, "Entered OpenManifestEntry_MainThreadContinuation\n"); |
- std::string mapped_url; |
+ PP_Var pp_mapped_url; |
PP_PNaClOptions pnacl_options = {PP_FALSE, PP_FALSE, 2}; |
- if (!manifest_->ResolveKey(p->url, &mapped_url, &pnacl_options)) { |
+ if (!GetNaClInterface()->ManifestResolveKey(plugin_->pp_instance(), |
+ manifest_id_, |
+ p->url.c_str(), |
+ &pp_mapped_url, |
+ &pnacl_options)) { |
NaClLog(4, "OpenManifestEntry_MainThreadContinuation: ResolveKey failed\n"); |
// Failed, and error_info has the details on what happened. Wake |
// up requesting thread -- we are done. |
@@ -362,6 +365,7 @@ void PluginReverseInterface::OpenManifestEntry_MainThreadContinuation( |
p->MaybeRunCallback(PP_OK); |
return; |
} |
+ nacl::string mapped_url = pp::Var(pp_mapped_url).AsString(); |
NaClLog(4, |
"OpenManifestEntry_MainThreadContinuation: " |
"ResolveKey: %s -> %s (pnacl_translate(%d))\n", |
@@ -560,7 +564,7 @@ void PluginReverseInterface::AddTempQuotaManagedFile( |
} |
ServiceRuntime::ServiceRuntime(Plugin* plugin, |
- const Manifest* manifest, |
+ int32_t manifest_id, |
bool main_service_runtime, |
bool uses_nonsfi_mode, |
pp::CompletionCallback init_done_cb, |
@@ -571,7 +575,7 @@ ServiceRuntime::ServiceRuntime(Plugin* plugin, |
reverse_service_(NULL), |
anchor_(new nacl::WeakRefAnchor()), |
rev_interface_(new PluginReverseInterface(anchor_, plugin, |
- manifest, |
+ manifest_id, |
this, |
init_done_cb, crash_cb)), |
exit_status_(-1), |