Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module resource_provider; | |
| 6 | |
| 7 // An interface through which a mojo application obtains resources. | |
| 8 interface ResourceProvider { | |
| 9 // Fetches the resource at the specified path ('/' is the path | |
| 10 // separator). If |path| is invalid, or does not exist |data| is null, | |
| 11 // otherwise |data| contains of the resource at the specified path. |path| | |
| 12 // must be relative, eg no leading '/'. | |
|
Ben Goodger (Google)
2015/05/01 17:19:06
You should document what the root is relative to?
| |
| 13 GetResource(string path) => (array<uint8>? data); | |
| 14 }; | |
| OLD | NEW |