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

Unified Diff: components/nacl/renderer/json_manifest.h

Issue 310113002: Pepper: Move JsonManifestMap to json_manifest.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 6 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 | « no previous file | components/nacl/renderer/json_manifest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/renderer/json_manifest.h
diff --git a/components/nacl/renderer/json_manifest.h b/components/nacl/renderer/json_manifest.h
index d8885d36990f2f781680fe7867b861dc28e8607e..7fdb1ab9e18d1af97f8ce2c9dddb892bd622b7d4 100644
--- a/components/nacl/renderer/json_manifest.h
+++ b/components/nacl/renderer/json_manifest.h
@@ -8,13 +8,25 @@
#include <set>
#include <string>
+#include "base/memory/scoped_ptr.h"
#include "ppapi/c/pp_array_output.h"
+#include "ppapi/c/pp_instance.h"
#include "ppapi/c/private/ppb_nacl_private.h"
#include "third_party/jsoncpp/source/include/json/value.h"
namespace nacl {
+class JsonManifest;
class NexeLoadManager;
+// There is at most one JsonManifest per PP_Instance. This adds a one-to-one
+// mapping.
+void AddJsonManifest(PP_Instance instance, scoped_ptr<JsonManifest> manifest);
+
+// Returns a non-owning pointer to the JsonManifest for the given instance.
+// Returns NULL if no such JsonManifest exists.
+JsonManifest* GetJsonManifest(PP_Instance instance);
+void DeleteJsonManifest(PP_Instance instance);
+
class JsonManifest {
public:
struct ErrorInfo {
« no previous file with comments | « no previous file | components/nacl/renderer/json_manifest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698