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

Unified Diff: mojo/services/catalog/reader.h

Issue 1828733004: Load application manifests from resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
Index: mojo/services/catalog/reader.h
diff --git a/mojo/services/catalog/reader.h b/mojo/services/catalog/reader.h
index d2d205fa3880a62ecbdc59633e6971716312cb42..f96391ee5e2c3a0da554a8b0edd535d088eb3673 100644
--- a/mojo/services/catalog/reader.h
+++ b/mojo/services/catalog/reader.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "base/strings/string_piece.h"
#include "base/values.h"
namespace base {
@@ -37,6 +38,10 @@ class Reader {
void Read(const std::string& name,
const ReadManifestCallback& callback);
+ // Parses manifest contents and returns an Entry built from the metadata it
+ // contains.
+ scoped_ptr<Entry> Parse(const base::StringPiece& manifest_contents);
+
private:
// Construct a manifest path for the application named |name| within
// |package_path_|.

Powered by Google App Engine
This is Rietveld 408576698