summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authorhalyavin@google.com <halyavin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-28 09:09:43 +0000
committerhalyavin@google.com <halyavin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-28 09:09:43 +0000
commit80fea543c78b1f3569067daa5b50d4d49083a5d6 (patch)
tree6326a3159859ffd35aa0c782b5da6dd2be77aba8 /ppapi
parent2fb0d65db7de0003669526cd119a5df203b1e629 (diff)
downloadchromium_src-80fea543c78b1f3569067daa5b50d4d49083a5d6.zip
chromium_src-80fea543c78b1f3569067daa5b50d4d49083a5d6.tar.gz
chromium_src-80fea543c78b1f3569067daa5b50d4d49083a5d6.tar.bz2
Show url of NaCl manifest in memory view.
BUG= 115081 TEST= load NaCl application, go to chrome://memory. Review URL: http://codereview.chromium.org/9460060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123948 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/native_client/src/trusted/plugin/plugin.cc2
-rw-r--r--ppapi/native_client/src/trusted/plugin/service_runtime.cc4
-rw-r--r--ppapi/native_client/src/trusted/plugin/service_runtime.h4
3 files changed, 6 insertions, 4 deletions
diff --git a/ppapi/native_client/src/trusted/plugin/plugin.cc b/ppapi/native_client/src/trusted/plugin/plugin.cc
index c89daa0..9f35eb7 100644
--- a/ppapi/native_client/src/trusted/plugin/plugin.cc
+++ b/ppapi/native_client/src/trusted/plugin/plugin.cc
@@ -605,7 +605,7 @@ bool Plugin::LoadNaClModuleCommon(nacl::DescWrapper* wrapper,
}
bool service_runtime_started =
- new_service_runtime->Start(wrapper, error_info);
+ new_service_runtime->Start(wrapper, error_info, manifest_base_url());
PLUGIN_PRINTF(("Plugin::LoadNaClModuleCommon (service_runtime_started=%d)\n",
service_runtime_started));
if (!service_runtime_started) {
diff --git a/ppapi/native_client/src/trusted/plugin/service_runtime.cc b/ppapi/native_client/src/trusted/plugin/service_runtime.cc
index 7ac2792..e8817318 100644
--- a/ppapi/native_client/src/trusted/plugin/service_runtime.cc
+++ b/ppapi/native_client/src/trusted/plugin/service_runtime.cc
@@ -658,7 +658,7 @@ bool ServiceRuntime::InitCommunication(nacl::DescWrapper* nacl_desc,
}
bool ServiceRuntime::Start(nacl::DescWrapper* nacl_desc,
- ErrorInfo* error_info) {
+ ErrorInfo* error_info, nacl::string url) {
PLUGIN_PRINTF(("ServiceRuntime::Start (nacl_desc=%p)\n",
reinterpret_cast<void*>(nacl_desc)));
@@ -671,7 +671,7 @@ bool ServiceRuntime::Start(nacl::DescWrapper* nacl_desc,
return false;
}
nacl::Handle sockets[3];
- if (!tmp_subprocess->Start(NACL_ARRAY_SIZE(sockets), sockets)) {
+ if (!tmp_subprocess->Start(NACL_ARRAY_SIZE(sockets), sockets, url.c_str())) {
PLUGIN_PRINTF(("ServiceRuntime::Start (start failed)\n"));
error_info->SetReport(ERROR_SEL_LDR_LAUNCH,
"ServiceRuntime: failed to start");
diff --git a/ppapi/native_client/src/trusted/plugin/service_runtime.h b/ppapi/native_client/src/trusted/plugin/service_runtime.h
index 77add65..1729cc5 100644
--- a/ppapi/native_client/src/trusted/plugin/service_runtime.h
+++ b/ppapi/native_client/src/trusted/plugin/service_runtime.h
@@ -217,7 +217,9 @@ class ServiceRuntime {
// to be started is passed through |nacl_file_desc|. On success, returns
// true. On failure, returns false and |error_string| is set to something
// describing the error.
- bool Start(nacl::DescWrapper* nacl_file_desc, ErrorInfo* error_info);
+ bool Start(nacl::DescWrapper* nacl_file_desc,
+ ErrorInfo* error_info,
+ nacl::string url);
// Starts the application channel to the nexe.
SrpcClient* SetupAppChannel();