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

Unified Diff: pkg/barback/lib/src/asset_provider.dart

Issue 5695057915019264: Make barback more package-aware. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 7 years, 5 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 | « pkg/barback/lib/src/asset_graph_manager.dart ('k') | pkg/barback/lib/src/errors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/lib/src/asset_provider.dart
diff --git a/pkg/barback/lib/src/asset_provider.dart b/pkg/barback/lib/src/asset_provider.dart
index 565e5ac70b30d934e0f6e8c8a9922645e8be6729..f57939753733b24a0f9cfbba0a6b05144e764fdf 100644
--- a/pkg/barback/lib/src/asset_provider.dart
+++ b/pkg/barback/lib/src/asset_provider.dart
@@ -8,7 +8,10 @@ import 'dart:async';
import 'asset.dart';
import 'asset_id.dart';
+import 'transformer.dart';
+// TODO(nweiz): change the name of this class now that it provides more than
+// just assets.
/// API for locating and accessing packages on disk.
///
/// Implemented by pub and provided to barback so that it isn't coupled
@@ -28,5 +31,11 @@ abstract class AssetProvider {
/// within the package, to only return the files within that subdirectory.
List<AssetId> listAssets(String package, {String within});
+ /// Returns the list of transformer phases that are applicable to [package].
+ ///
+ /// The phases will be run in sequence, with the outputs of one pipelined into
+ /// the next. All [Transformer]s in a single phase will be run in parallel.
+ Iterable<Iterable<Transformer>> getTransformers(String package);
+
Future<Asset> getAsset(AssetId id);
}
« no previous file with comments | « pkg/barback/lib/src/asset_graph_manager.dart ('k') | pkg/barback/lib/src/errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698