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

Unified Diff: components/resource_provider/public/interfaces/resource_provider.mojom

Issue 1108403008: Adds resource_provider::ResourceProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 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
Index: components/resource_provider/public/interfaces/resource_provider.mojom
diff --git a/components/resource_provider/public/interfaces/resource_provider.mojom b/components/resource_provider/public/interfaces/resource_provider.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..15af0d1f6191fa77ae880853bd4d5eb3fcd5a08f
--- /dev/null
+++ b/components/resource_provider/public/interfaces/resource_provider.mojom
@@ -0,0 +1,18 @@
+// Copyright 2015 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.
+
+module resource_provider;
+
+// An interface through which a mojo application obtains resources.
+interface ResourceProvider {
+ // Fetches the resources at the specified paths. The paths are relative to
+ // the resources directory of the application. Use "/" as the path separator.
+ // For example, the path "foo/bar" returns a platform handle to the file at
+ // the path foo/bar relative to the resources directory of the application
+ // requestion the resource.
+ //
+ // The result is an array of platform handles for each of the requested paths.
+ // TODO(sky): this should really be map<string,handle>, but that doesn't work.
+ GetResources(array<string> paths) => (array<handle> resource_handles);
+};
« no previous file with comments | « components/resource_provider/public/interfaces/BUILD.gn ('k') | components/resource_provider/resource_provider_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698