OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 function MetadataParser(parent, type, urlFilter) { | 5 function MetadataParser(parent, type, urlFilter) { |
6 this.parent_ = parent; | 6 this.parent_ = parent; |
7 this.type = type; | 7 this.type = type; |
8 this.urlFilter = urlFilter; | 8 this.urlFilter = urlFilter; |
9 this.verbose = parent.verbose; | 9 this.verbose = parent.verbose; |
10 this.mimeType = 'unknown'; | 10 this.mimeType = 'unknown'; |
(...skipping 23 matching lines...) Expand all Loading... |
34 return mimeType == this.mimeType; | 34 return mimeType == this.mimeType; |
35 }; | 35 }; |
36 | 36 |
37 /* Base class for image metadata parsers */ | 37 /* Base class for image metadata parsers */ |
38 function ImageParser(parent, type, urlFilter) { | 38 function ImageParser(parent, type, urlFilter) { |
39 MetadataParser.apply(this, arguments); | 39 MetadataParser.apply(this, arguments); |
40 this.mimeType = 'image/' + this.type; | 40 this.mimeType = 'image/' + this.type; |
41 } | 41 } |
42 | 42 |
43 ImageParser.prototype = {__proto__: MetadataParser.prototype}; | 43 ImageParser.prototype = {__proto__: MetadataParser.prototype}; |
OLD | NEW |