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

Side by Side Diff: utils/archive/archive.dart

Issue 10832116: Attach the native entry struct to the ArchiveEntry object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /** 5 /**
6 * The primary library file for the archive library. This is the only file that 6 * The primary library file for the archive library. This is the only file that
7 * should be imported by clients. 7 * should be imported by clients.
8 */ 8 */
9 #library("archive"); 9 #library("archive");
10 10
11 #import("entry.dart", prefix: "entry");
11 #import("reader.dart", prefix: "reader"); 12 #import("reader.dart", prefix: "reader");
12 13
13 // TODO(nweiz): Remove this when 3071 is fixed. 14 // TODO(nweiz): Remove this when 3071 is fixed.
14 /** An error raised by the archive library. */ 15 /** An error raised by the archive library. */
15 interface ArchiveException { 16 interface ArchiveException {
16 /** A description of the error that occurred. */ 17 /** A description of the error that occurred. */
17 final String message; 18 final String message;
18 19
19 /** The error code for the error, or null. */ 20 /** The error code for the error, or null. */
20 final int errno; 21 final int errno;
21 } 22 }
22 23
23 // TODO(nweiz): Remove this when 3071 is fixed. 24 // TODO(nweiz): Remove this when 3071 is fixed.
24 /** See [reader.ArchiveReader]. */ 25 /** See [reader.ArchiveReader]. */
25 class ArchiveReader extends reader.ArchiveReader {} 26 class ArchiveReader extends reader.ArchiveReader {}
27
28 // TODO(nweiz): Remove this when 3071 is fixed.
29 /** See [entry.ArchiveEntry]. */
30 class ArchiveEntry extends entry.ArchiveEntry {
31 ArchiveEntry.internal(List properties, int archiveId)
32 : super.internal(properties, archiveId);
33
34 /** Create a new [ArchiveEntry] with default values for all of its fields. */
35 static Future<ArchiveEntry> create() => entry.ArchiveEntry.create();
36 }
OLDNEW
« no previous file with comments | « utils/archive/Makefile ('k') | utils/archive/dart_archive.c » ('j') | utils/archive/entry.c » ('J')

Powered by Google App Engine
This is Rietveld 408576698