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 'use strict'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * @param {MetadataDispatcher} parent Parent object. | 8 * @param {MetadataDispatcher} parent Parent object. |
9 * @param {string} type Parser type. | 9 * @param {string} type Parser type. |
10 * @param {RegExp} urlFilter RegExp to match URLs. | 10 * @param {RegExp} urlFilter RegExp to match URLs. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 }; | 53 }; |
54 }; | 54 }; |
55 | 55 |
56 /* Base class for image metadata parsers */ | 56 /* Base class for image metadata parsers */ |
57 function ImageParser(parent, type, urlFilter) { | 57 function ImageParser(parent, type, urlFilter) { |
58 MetadataParser.apply(this, arguments); | 58 MetadataParser.apply(this, arguments); |
59 this.mimeType = 'image/' + this.type; | 59 this.mimeType = 'image/' + this.type; |
60 } | 60 } |
61 | 61 |
62 ImageParser.prototype = {__proto__: MetadataParser.prototype}; | 62 ImageParser.prototype = {__proto__: MetadataParser.prototype}; |
OLD | NEW |