Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1444)

Unified Diff: src/trusted/plugin/manifest.h

Issue 7799028: Remove src/trusted/plugin (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: fix gyp file for necessary -I Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/trusted/plugin/file_downloader.cc ('k') | src/trusted/plugin/manifest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/plugin/manifest.h
diff --git a/src/trusted/plugin/manifest.h b/src/trusted/plugin/manifest.h
deleted file mode 100644
index cc3e3e24bab59c41859a1468eceed77e509bc6a1..0000000000000000000000000000000000000000
--- a/src/trusted/plugin/manifest.h
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * Copyright (c) 2011 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-// Manifest file processing class.
-
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_MANIFEST_H_
-#define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_MANIFEST_H_
-
-#include <map>
-#include <set>
-#include <string>
-
-#include "native_client/src/include/nacl_macros.h"
-#include "native_client/src/include/nacl_string.h"
-#include "native_client/src/third_party_mod/jsoncpp/include/json/value.h"
-
-namespace pp {
-class URLUtil_Dev;
-} // namespace pp
-
-namespace plugin {
-
-class ErrorInfo;
-
-class Manifest {
- public:
- Manifest(const pp::URLUtil_Dev* url_util,
- const nacl::string& manifest_base_url,
- const nacl::string& sandbox_isa)
- : url_util_(url_util),
- manifest_base_url_(manifest_base_url),
- sandbox_isa_(sandbox_isa),
- dictionary_(Json::nullValue) { }
- ~Manifest() { }
-
- // Determines whether portable programs are chosen in manifest files over
- // native programs. Normally the native version is selected if available.
- static bool PreferPortable();
-
- // Initialize the manifest object for use by later lookups. The return
- // value is true if the manifest parses correctly and matches the schema.
- bool Init(const nacl::string& json, ErrorInfo* error_info);
-
- // Gets the full program URL for the current sandbox ISA from the
- // manifest file. Sets |is_portable| to |true| if the program is
- // portable bitcode.
- bool GetProgramURL(nacl::string* full_url,
- ErrorInfo* error_info,
- bool* is_portable);
-
- // TODO(jvoung): Get rid of these when we find a better way to
- // store / install these.
- // Gets the full nexe URL for the LLC nexe from the manifest file.
- bool GetLLCURL(nacl::string* full_url, ErrorInfo* error_info);
-
- // Gets the full nexe URL for the LD nexe from the manifest file.
- bool GetLDURL(nacl::string* full_url, ErrorInfo* error_info);
- // end TODO(jvoung)
-
- // Resolves a URL relative to the manifest base URL
- bool ResolveURL(const nacl::string& relative_url,
- nacl::string* full_url,
- 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.
- 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). If there was an error, details
- // are reported via error_info, and is_portable, if non-NULL, tells
- // the caller whether the resolution used the portable
- // representation or an ISA-specific version of the file.
- bool ResolveKey(const nacl::string& key,
- nacl::string* full_url,
- ErrorInfo* error_info,
- bool* is_portable) const;
-
- private:
- const pp::URLUtil_Dev* url_util_;
- nacl::string manifest_base_url_;
- nacl::string sandbox_isa_;
- Json::Value dictionary_;
-
- // Checks that |dictionary_| is a valid manifest, according to the schema.
- // Returns true on success, and sets |error_info| to a detailed message
- // if not.
- bool MatchesSchema(ErrorInfo* error_info);
-
- NACL_DISALLOW_COPY_AND_ASSIGN(Manifest);
-};
-
-
-} // namespace plugin
-
-#endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_MANIFEST_H_
« no previous file with comments | « src/trusted/plugin/file_downloader.cc ('k') | src/trusted/plugin/manifest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698