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

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

Issue 1828733004: Load application manifests from resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « mojo/services/catalog/factory.cc ('k') | mojo/shell/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/catalog/manifest_provider.h
diff --git a/mojo/services/catalog/manifest_provider.h b/mojo/services/catalog/manifest_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..f3cf1018cc0aca16d1ac6a8b8d406b19f5b8885b
--- /dev/null
+++ b/mojo/services/catalog/manifest_provider.h
@@ -0,0 +1,29 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MOJO_SERVICES_CATALOG_MANIFEST_PROVIDER_H_
+#define MOJO_SERVICES_CATALOG_MANIFEST_PROVIDER_H_
+
+#include <string>
+
+#include "base/strings/string_piece.h"
+
+namespace catalog {
+
+// An interface which can be implemented by a catalog embedder to override
+// manifest fetching behavior.
+class ManifestProvider {
+ public:
+ virtual ~ManifestProvider() {}
+
+ // Retrieves the raw contents of the manifest for application named |name|.
+ // Returns true if |name| is known and |*manifest_contents| is populated.
+ // returns false otherwise.
+ virtual bool GetApplicationManifest(const base::StringPiece& name,
+ std::string* manifest_contents) = 0;
+};
+
+} // namespace catalog
+
+#endif // MOJO_SERVICES_CATALOG_MANIFEST_PROVIDER_H_
« no previous file with comments | « mojo/services/catalog/factory.cc ('k') | mojo/shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698