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..0fa12212d1484889818acc9366c22b8609021a86 |
--- /dev/null |
+++ b/components/resource_provider/public/interfaces/resource_provider.mojom |
@@ -0,0 +1,14 @@ |
+// 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 resource at the specified path ('/' is the path |
+ // separator). If |path| is invalid, or does not exist |data| is null, |
+ // otherwise |data| contains of the resource at the specified path. |path| |
+ // must be relative, eg no leading '/'. |
Ben Goodger (Google)
2015/05/01 17:19:06
You should document what the root is relative to?
|
+ GetResource(string path) => (array<uint8>? data); |
+}; |