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

Unified Diff: pkg/mime/lib/src/magic_number.dart

Issue 292983002: Clean up mime package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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/mime/lib/src/default_extension_map.dart ('k') | pkg/mime/lib/src/mime_type.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/mime/lib/src/magic_number.dart
diff --git a/pkg/mime/lib/src/magic_number.dart b/pkg/mime/lib/src/magic_number.dart
index 6c554aaa4e2fcfa9c2f0d48f55953e6fa9ec845e..3efb2ee735087a2db044c1981df68279cded3626 100644
--- a/pkg/mime/lib/src/magic_number.dart
+++ b/pkg/mime/lib/src/magic_number.dart
@@ -27,6 +27,8 @@ class MagicNumber {
}
+const int DEFAULT_MAGIC_NUMBERS_MAX_LENGTH = 12;
+
const List<MagicNumber> DEFAULT_MAGIC_NUMBERS = const [
const MagicNumber('application/pdf', const [0x25, 0x50, 0x44, 0x46]),
const MagicNumber('application/postscript', const [0x25, 0x51]),
« no previous file with comments | « pkg/mime/lib/src/default_extension_map.dart ('k') | pkg/mime/lib/src/mime_type.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698