| 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 importScripts('function_sequence.js'); | 7 /** |
| 8 importScripts('function_parallel.js'); | 8 * Protocol + host parts of extension URL. |
| 9 * @type {string} |
| 10 * @const |
| 11 */ |
| 12 var FILE_MANAGER_HOST = 'chrome-extension://hhaomjibdihmijegdhdafkllkbggdgoj'; |
| 13 |
| 14 importScripts( |
| 15 FILE_MANAGER_HOST + '/foreground/js/metadata/function_sequence.js'); |
| 16 importScripts( |
| 17 FILE_MANAGER_HOST + '/foreground/js/metadata/function_parallel.js'); |
| 9 | 18 |
| 10 function Id3Parser(parent) { | 19 function Id3Parser(parent) { |
| 11 MetadataParser.call(this, parent, 'id3', /\.(mp3)$/i); | 20 MetadataParser.call(this, parent, 'id3', /\.(mp3)$/i); |
| 12 } | 21 } |
| 13 | 22 |
| 14 Id3Parser.prototype = {__proto__: MetadataParser.prototype}; | 23 Id3Parser.prototype = {__proto__: MetadataParser.prototype}; |
| 15 | 24 |
| 16 /** | 25 /** |
| 17 * Reads synchsafe integer. | 26 * Reads synchsafe integer. |
| 18 * 'SynchSafe' term is taken from id3 documentation. | 27 * 'SynchSafe' term is taken from id3 documentation. |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 TYER: 'ID3_YEAR', | 708 TYER: 'ID3_YEAR', |
| 700 WCOP: 'ID3_COPYRIGHT', | 709 WCOP: 'ID3_COPYRIGHT', |
| 701 WOAF: 'ID3_OFFICIAL_AUDIO_FILE_WEBPAGE', | 710 WOAF: 'ID3_OFFICIAL_AUDIO_FILE_WEBPAGE', |
| 702 WOAR: 'ID3_OFFICIAL_ARTIST', | 711 WOAR: 'ID3_OFFICIAL_ARTIST', |
| 703 WOAS: 'ID3_OFFICIAL_AUDIO_SOURCE_WEBPAGE', | 712 WOAS: 'ID3_OFFICIAL_AUDIO_SOURCE_WEBPAGE', |
| 704 WPUB: 'ID3_PUBLISHERS_OFFICIAL_WEBPAGE' | 713 WPUB: 'ID3_PUBLISHERS_OFFICIAL_WEBPAGE' |
| 705 } | 714 } |
| 706 }; | 715 }; |
| 707 | 716 |
| 708 MetadataDispatcher.registerParserClass(Id3Parser); | 717 MetadataDispatcher.registerParserClass(Id3Parser); |
| OLD | NEW |