diff options
author | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-29 19:43:24 +0000 |
---|---|---|
committer | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-29 19:43:24 +0000 |
commit | 9e7d2376ba416aecb2c8e695dadb2c02b20473d1 (patch) | |
tree | 0561151d915bf348b4b1e05d5b17a8ead6872171 | |
parent | 1124dea06ec4f030992f95ab653ab3759b694fde (diff) | |
download | chromium_src-9e7d2376ba416aecb2c8e695dadb2c02b20473d1.zip chromium_src-9e7d2376ba416aecb2c8e695dadb2c02b20473d1.tar.gz chromium_src-9e7d2376ba416aecb2c8e695dadb2c02b20473d1.tar.bz2 |
Trusted plugin: Remove EnumerateManifestKeys.
This function was removed from ReverseService inside "native_client/", as it's
no longer necessary. This change removes an implementation that's never called,
and simplifies the Manifest logic, making it easier to move that out of the
trusted plugin.
BUG=239656
R=dmichael@chromium.org
Review URL: https://codereview.chromium.org/258083004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266938 0039d316-1c4b-4281-b951-d872f2087c98
6 files changed, 0 insertions, 40 deletions
diff --git a/ppapi/native_client/src/trusted/plugin/json_manifest.cc b/ppapi/native_client/src/trusted/plugin/json_manifest.cc index 1fb51ea..0187497 100644 --- a/ppapi/native_client/src/trusted/plugin/json_manifest.cc +++ b/ppapi/native_client/src/trusted/plugin/json_manifest.cc @@ -609,20 +609,6 @@ bool JsonManifest::GetProgramURL(nacl::string* full_url, return ResolveURL(nexe_url, full_url, error_info); } -bool JsonManifest::GetFileKeys(std::set<nacl::string>* keys) const { - if (!dictionary_.isMember(kFilesKey)) { - // trivial success: no keys when there is no "files" section. - return true; - } - const Json::Value& files = dictionary_[kFilesKey]; - CHECK(files.isObject()); - Json::Value::Members members = files.getMemberNames(); - for (size_t i = 0; i < members.size(); ++i) { - keys->insert(members[i]); - } - return true; -} - bool JsonManifest::ResolveKey(const nacl::string& key, nacl::string* full_url, PP_PNaClOptions* pnacl_options, diff --git a/ppapi/native_client/src/trusted/plugin/json_manifest.h b/ppapi/native_client/src/trusted/plugin/json_manifest.h index 1f4180c..dd7e3ab 100644 --- a/ppapi/native_client/src/trusted/plugin/json_manifest.h +++ b/ppapi/native_client/src/trusted/plugin/json_manifest.h @@ -54,12 +54,6 @@ class JsonManifest : public Manifest { bool* uses_nonsfi_mode, ErrorInfo* error_info) const; - // Gets the file names from the "files" section of the manifest. No - // checking that the keys' values are proper ISA dictionaries -- it - // is assumed that other consistency checks take care of that, and - // that the keys are appropriate for use with ResolveKey. - virtual bool GetFileKeys(std::set<nacl::string>* keys) const; - // Resolves a key from the "files" section to a fully resolved URL, // i.e., relative URL values are fully expanded relative to the // manifest's URL (via ResolveURL). diff --git a/ppapi/native_client/src/trusted/plugin/manifest.h b/ppapi/native_client/src/trusted/plugin/manifest.h index aa1ad3b..03ed71e 100644 --- a/ppapi/native_client/src/trusted/plugin/manifest.h +++ b/ppapi/native_client/src/trusted/plugin/manifest.h @@ -47,12 +47,6 @@ class Manifest { bool* uses_nonsfi_mode, ErrorInfo* error_info) const = 0; - // Gets the file names from the "files" section of the manifest. No - // checking that the keys' values are proper ISA dictionaries -- it - // is assumed that other consistency checks take care of that, and - // that the keys are appropriate for use with ResolveKey. - virtual bool GetFileKeys(std::set<nacl::string>* keys) const = 0; - // Resolves a key from the "files" section to a fully resolved URL, // i.e., relative URL values are fully expanded relative to the // manifest's URL. Fills in |pnacl_options| if diff --git a/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc b/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc index 14d055f..fd108b7 100644 --- a/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc +++ b/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc @@ -56,13 +56,6 @@ class PnaclManifest : public Manifest { return false; } - virtual bool GetFileKeys(std::set<nacl::string>* keys) const { - // Does not support enumeration. - PLUGIN_PRINTF(("PnaclManifest does not support key enumeration\n")); - UNREFERENCED_PARAMETER(keys); - return false; - } - virtual bool ResolveKey(const nacl::string& key, nacl::string* full_url, PP_PNaClOptions* pnacl_options, diff --git a/ppapi/native_client/src/trusted/plugin/service_runtime.cc b/ppapi/native_client/src/trusted/plugin/service_runtime.cc index e9eba18..131f9ae 100644 --- a/ppapi/native_client/src/trusted/plugin/service_runtime.cc +++ b/ppapi/native_client/src/trusted/plugin/service_runtime.cc @@ -184,11 +184,6 @@ void PluginReverseInterface::PostMessage_MainThreadContinuation( plugin_->PostMessage(std::string("DEBUG_POSTMESSAGE:") + p->message); } -bool PluginReverseInterface::EnumerateManifestKeys( - std::set<nacl::string>* out_keys) { - return manifest_->GetFileKeys(out_keys); -} - // TODO(bsy): OpenManifestEntry should use the manifest to ResolveKey // and invoke StreamAsFile with a completion callback that invokes // GetPOSIXFileDesc. diff --git a/ppapi/native_client/src/trusted/plugin/service_runtime.h b/ppapi/native_client/src/trusted/plugin/service_runtime.h index 79ef7c2..07850d4 100644 --- a/ppapi/native_client/src/trusted/plugin/service_runtime.h +++ b/ppapi/native_client/src/trusted/plugin/service_runtime.h @@ -153,8 +153,6 @@ class PluginReverseInterface: public nacl::ReverseInterface { virtual void StartupInitializationComplete(); - virtual bool EnumerateManifestKeys(std::set<nacl::string>* out_keys); - virtual bool OpenManifestEntry(nacl::string url_key, struct NaClFileInfo *info); |