| Index: third_party/mojo/src/mojo/public/tools/mojom_fetcher/pylib/fetcher/mojom_file.py
|
| diff --git a/third_party/mojo/src/mojo/public/tools/mojom_fetcher/pylib/fetcher/mojom_file.py b/third_party/mojo/src/mojo/public/tools/mojom_fetcher/pylib/fetcher/mojom_file.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ad8c969868992681e006e3c4e0f88ef8e0ff7a7a
|
| --- /dev/null
|
| +++ b/third_party/mojo/src/mojo/public/tools/mojom_fetcher/pylib/fetcher/mojom_file.py
|
| @@ -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.
|
| +
|
| +from fetcher.dependency import Dependency
|
| +
|
| +
|
| +class MojomFile(object):
|
| + """Mojom represents an interface file at a given location in the
|
| + repository."""
|
| + def __init__(self, repository, name):
|
| + self.name = name
|
| + self._repository = repository
|
| + self.deps = []
|
| +
|
| + def add_dependency(self, dependency):
|
| + """Declare a new dependency of this mojom."""
|
| + self.deps.append(Dependency(self._repository, self.name, dependency))
|
|
|