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

Side by Side Diff: pkg/pub_server/lib/repository.dart

Issue 917793002: Use pub_server package (Closed) Base URL: git@github.com:dart-lang/pub-dartlang-dart.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « pkg/pub_server/codereview.settings ('k') | pkg/pub_server/lib/shelf_pubserver.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library pubserver.repository; 5 library pub_server.repository;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:pub_semver/pub_semver.dart'; 9 import 'package:pub_semver/pub_semver.dart';
10 10
11 /// Represents information about a specific version of a pub package. 11 /// Represents information about a specific version of a pub package.
12 class PackageVersion { 12 class PackageVersion {
13 /// The name of the package. 13 /// The name of the package.
14 final String packageName; 14 final String packageName;
15 15
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 /// Downloads a pub package. 110 /// Downloads a pub package.
111 Future<Stream> download(String package, String version); 111 Future<Stream> download(String package, String version);
112 112
113 /// Whether this package repository supports download URLs. 113 /// Whether this package repository supports download URLs.
114 bool get supportsDownloadUrl => false; 114 bool get supportsDownloadUrl => false;
115 115
116 /// A permanent download URL to a package (if supported). 116 /// A permanent download URL to a package (if supported).
117 Future<Uri> downloadUrl(String package, String version) 117 Future<Uri> downloadUrl(String package, String version)
118 => new Future.error(new UnsupportedError('No download link support.')); 118 => new Future.error(new UnsupportedError('No download link support.'));
119 } 119 }
OLDNEW
« no previous file with comments | « pkg/pub_server/codereview.settings ('k') | pkg/pub_server/lib/shelf_pubserver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698