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

Unified Diff: runtime/bin/filter_patch.dart

Issue 12481016: And another... :( (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add dummy implementation to sdk/lib/_internal/compiler/implementation/lib/io_patch.dart Created 7 years, 9 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 | « no previous file | sdk/lib/_internal/compiler/implementation/lib/io_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/filter_patch.dart
diff --git a/runtime/bin/filter_patch.dart b/runtime/bin/filter_patch.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5a0424189ecb12b2e3b7633421d6032165a7b66e
--- /dev/null
+++ b/runtime/bin/filter_patch.dart
@@ -0,0 +1,33 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+
+class _FilterImpl extends NativeFieldWrapperClass1 implements _Filter {
+ void process(List<int> data) native "Filter_Process";
+
+ List<int> processed({bool flush: true}) native "Filter_Processed";
+
+ void end() native "Filter_End";
+}
+
+class _ZLibInflateFilter extends _FilterImpl {
+ _ZLibInflateFilter() {
+ _init();
+ }
+ void _init() native "Filter_CreateZLibInflate";
+}
+
+class _ZLibDeflateFilter extends _FilterImpl {
+ _ZLibDeflateFilter(bool gzip, int level) {
+ _init(gzip, level);
+ }
+ void _init(bool gzip, int level) native "Filter_CreateZLibDeflate";
+}
+
+patch class _Filter {
+ /* patch */ static _Filter newZLibDeflateFilter(bool gzip, int level)
+ => new _ZLibDeflateFilter(gzip, level);
+ /* patch */ static _Filter newZLibInflateFilter() => new _ZLibInflateFilter();
+}
+
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/lib/io_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698